Skip to content
This repository was archived by the owner on May 6, 2026. It is now read-only.

Commit fdaa12a

Browse files
committed
Swap the order of _write_to_stream() / _process_response() in requests download.
1 parent 126e749 commit fdaa12a

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

google/resumable_media/requests/download.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,10 +95,11 @@ def consume(self, transport):
9595
result = _helpers.http_request(
9696
transport, method, url, **request_kwargs)
9797

98+
self._process_response(result)
99+
98100
if self._stream is not None:
99101
self._write_to_stream(result)
100102

101-
self._process_response(result)
102103
return result
103104

104105

0 commit comments

Comments
 (0)