diff idavoll/gateway.py @ 214:3c45208678fa

Make 204 responses not result in failure.
author Ralph Meijer <ralphm@ik.nu>
date Thu, 18 Jun 2009 12:40:58 +0000
parents bfc198af5d27
children 55b45c7dccb4
line wrap: on
line diff
--- a/idavoll/gateway.py	Thu Jun 18 10:27:11 2009 +0000
+++ b/idavoll/gateway.py	Thu Jun 18 12:40:58 2009 +0000
@@ -517,10 +517,11 @@
                               )
 
         def postNotification(callbackURI):
-            d = client.getPage(str(callbackURI),
+            f = getPageWithFactory(str(callbackURI),
                                    method='POST',
                                    postdata=postdata,
                                    headers=headers)
+            d = f.deferred
             d.addErrback(log.err)
 
         for callbackURI in callbacks: