Skip to content

Commit

Permalink
Swap the order of _write_to_stream() / _process_response() in `reques…
Browse files Browse the repository at this point in the history
…ts` download.
  • Loading branch information
dhermes committed Aug 1, 2017
1 parent 126e749 commit fdaa12a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion google/resumable_media/requests/download.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,10 +95,11 @@ def consume(self, transport):
result = _helpers.http_request(
transport, method, url, **request_kwargs)

self._process_response(result)

if self._stream is not None:
self._write_to_stream(result)

self._process_response(result)
return result


Expand Down

0 comments on commit fdaa12a

Please sign in to comment.