mirror of https://github.com/docker/docker-py.git
Error with headers being NoneType
This commit is contained in:
parent
8983fa561c
commit
28eb629c87
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue