Skip to content

Commit a9ce7fe

Browse files
committed
gdata/service.py: handle HTTP 301 redirects in addition to HTTP 302 ones
Fixes https://code.google.com/p/gdata-python-client/issues/detail?id=693.
1 parent dff9246 commit a9ce7fe

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎src/gdata/service.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1085,7 +1085,7 @@ def Get(self, uri, extra_headers=None, redirects_remaining=4,
10851085
return result_body
10861086
return entry
10871087
return feed
1088-
elif server_response.status == 302:
1088+
elif server_response.status in (301, 302):
10891089
if redirects_remaining > 0:
10901090
location = (server_response.getheader('Location')
10911091
or server_response.getheader('location'))

0 commit comments

Comments
 (0)