Revision 4013a851
b/pithos/lib/client.py | ||
---|---|---|
150 | 150 |
kwargs['headers']['Content-Length'] = len(body) if body else 0 |
151 | 151 |
if body: |
152 | 152 |
kwargs['body'] = body |
153 |
else: |
|
154 |
kwargs['headers']['Content-Type'] = '' |
|
153 | 155 |
kwargs['headers'].setdefault('Content-Type', 'application/octet-stream') |
154 | 156 |
try: |
155 | 157 |
conn.request(method, full_path, **kwargs) |
Also available in: Unified diff