projects
/
pithos
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4288ade
)
Add a Content-Type header when sending data
author
Giorgos Verigakis
<verigak@gmail.com>
Fri, 27 May 2011 16:28:19 +0000
(19:28 +0300)
committer
Giorgos Verigakis
<verigak@gmail.com>
Fri, 27 May 2011 16:28:19 +0000
(19:28 +0300)
tools/store
patch
|
blob
|
history
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()