chiark
/
gitweb
/
~ian
/
hippotat.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
wip
[hippotat.git]
/
client
diff --git
a/client
b/client
index 7727f2bb0715c19e15ac5dd359f61847134d4fcc..e99cb4967440d287c5eb4aa1c4f1675f43d350c4 100755
(executable)
--- a/
client
+++ b/
client
@@
-146,18
+146,16
@@
def check_outbound():
log_debug(DBG.HTTP_FULL, 'requesting: ' + str(mime))
hh = { 'User-Agent': ['hippotat'],
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,
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)
log_debug(DBG.HTTP_CTRL, 'request', idof=req, d=d)
req.addTimeout(c.http_timeout, reactor)