Kaydet (Commit) d0985b02 authored tarafından Darren Shepherd's avatar Darren Shepherd

Ensure that stream=True is passed to requests when version >= 1.8

üst 7ea1195d
......@@ -349,6 +349,9 @@ class Client(requests.Session):
else:
context = utils.tar(path)
if utils.compare_version('1.8', self._version) >= 0:
stream = True
u = self._url('/build')
params = {
't': tag,
......@@ -372,7 +375,7 @@ class Client(requests.Session):
if context is not None:
context.close()
if stream or utils.compare_version('1.8', self._version) >= 0:
if stream:
return self._stream_helper(response)
else:
output = self._result(response)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment