projects
/
pithos
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b44d602
)
Send no Content-type if no data exist
author
Sofia Papagiannaki
<papagian@gmail.com>
Fri, 1 Jul 2011 16:17:50 +0000
(19:17 +0300)
committer
Sofia Papagiannaki
<papagian@gmail.com>
Fri, 1 Jul 2011 16:17:50 +0000
(19:17 +0300)
Fixes Missing Content-Range header Error while updating object metadata
Fixes #567
pithos/lib/client.py
patch
|
blob
|
history
diff --git
a/pithos/lib/client.py
b/pithos/lib/client.py
index
014fb95
..
3f9abd7
100644
(file)
--- a/
pithos/lib/client.py
+++ b/
pithos/lib/client.py
@@
-150,6
+150,8
@@
class Client(object):
kwargs['headers']['Content-Length'] = len(body) if body else 0
if body:
kwargs['body'] = body
+ else:
+ kwargs['headers']['Content-Type'] = ''
kwargs['headers'].setdefault('Content-Type', 'application/octet-stream')
try:
conn.request(method, full_path, **kwargs)