From: Ian Jackson Date: Sat, 1 Apr 2017 19:24:31 +0000 (+0100) Subject: wip X-Git-Tag: hippotat/1.0.0~55^2~176 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ian/git?p=hippotat.git;a=commitdiff_plain;h=b37c6b5347dea8fcf197e344b71ab53a69b2208b;ds=sidebyside wip --- diff --git a/client b/client index 7727f2b..e99cb49 100755 --- a/client +++ b/client @@ -146,18 +146,16 @@ def check_outbound(): log_debug(DBG.HTTP_FULL, 'requesting: ' + str(mime)) hh = { 'User-Agent': ['hippotat'], - 'Content-Type': ['multipart/form-data; boundary="b"'] -# , 'Content-Length': [str(len(mime))] - } + 'Content-Type': ['multipart/form-data; boundary="b"'], + 'Content-Length': [str(len(mime))] } bytesreader = io.BytesIO(mime) producer = twisted.web.client.FileBodyProducer(bytesreader) req = agent.request(b'POST', c.url, - twisted.web.client.Headers(hh) -# , producer - ) + twisted.web.client.Headers(hh), + producer) log_debug(DBG.HTTP_CTRL, 'request', idof=req, d=d) req.addTimeout(c.http_timeout, reactor)