Skip to content

Commit

Permalink
Add compatibility with httplib2 0.16.0+
Browse files Browse the repository at this point in the history
  • Loading branch information
ejochman committed May 7, 2020
1 parent 02db277 commit 1cf3dac
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions apitools/base/py/http_wrapper.py
Expand Up @@ -339,6 +339,10 @@ def MakeRequest(http, http_request, retries=7, max_retry_wait=60,
"""
retry = 0
first_req_time = time.time()
# Provide compatibility for breaking change in httplib2 0.16.0+:
# https://github.com/googleapis/google-api-python-client/issues/803
if hasattr(http, 'redirect_codes'):
http.redirect_codes = set(http.redirect_codes) - {308}
while True:
try:
return _MakeRequestNoRetry(
Expand Down

0 comments on commit 1cf3dac

Please sign in to comment.