comparison 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
comparison
equal deleted inserted replaced
213:a321f9300054 214:3c45208678fa
515 headers['Link'] = '<%s>; rel=alternate' % ( 515 headers['Link'] = '<%s>; rel=alternate' % (
516 redirectURI.encode('utf-8'), 516 redirectURI.encode('utf-8'),
517 ) 517 )
518 518
519 def postNotification(callbackURI): 519 def postNotification(callbackURI):
520 d = client.getPage(str(callbackURI), 520 f = getPageWithFactory(str(callbackURI),
521 method='POST', 521 method='POST',
522 postdata=postdata, 522 postdata=postdata,
523 headers=headers) 523 headers=headers)
524 d = f.deferred
524 d.addErrback(log.err) 525 d.addErrback(log.err)
525 526
526 for callbackURI in callbacks: 527 for callbackURI in callbacks:
527 reactor.callLater(0, postNotification, callbackURI) 528 reactor.callLater(0, postNotification, callbackURI)
528 529