Error with headers being NoneType

This commit is contained in:
Tom Arnfeld 2014-04-23 13:24:14 +01:00
parent 8983fa561c
commit 28eb629c87
1 changed files with 1 additions and 1 deletions

View File

@ -335,7 +335,7 @@ class Client(requests.Session):
}
if context is not None:
headers['Content-Type'] = 'application/tar'
headers = {'Content-Type': 'application/tar'}
if encoding:
headers['Content-Encoding'] = encoding