From b37c6b5347dea8fcf197e344b71ab53a69b2208b Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Sat, 1 Apr 2017 20:24:31 +0100 Subject: [PATCH] wip --- client | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) 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) -- 2.30.2