projects
/
pithos
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Add a Content-Type header when sending data
[pithos]
/
tools
/
store
diff --git
a/tools/store
b/tools/store
index
61ad273
..
d19dcd6
100755
(executable)
--- a/
tools/store
+++ b/
tools/store
@@
-39,6
+39,7
@@
class Client(object):
kwargs['headers']['Content-Length'] = len(body) if body else 0
if body:
kwargs['body'] = body
+ kwargs['headers']['Content-Type'] = 'application/octet-stream'
conn.request(method, full_path, **kwargs)
resp = conn.getresponse()