Skip to content

Commit 6b75171

Browse files
committed
Remove a newly-added exception.
It turns out that the same code in `http.py` is used for processing both (1) the initial response and redirect and (2) the replies containing actual bytes for download. This means that the new exception we added for (2) leads to problems in (1).
1 parent 8a0c8be commit 6b75171

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

googleapiclient/http.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -561,8 +561,6 @@ def next_chunk(self, num_retries=0):
561561
self._total_size = int(length)
562562
elif 'content-length' in resp:
563563
self._total_size = int(resp['content-length'])
564-
else:
565-
raise HttpError(resp, content, uri=self._uri)
566564

567565
if self._progress == self._total_size:
568566
self._done = True

0 commit comments

Comments
 (0)