changeset 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 a321f9300054
children aecfacb5a571
files idavoll/gateway.py
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
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: