Description: handle HTTP 301 redirects in addition to HTTP 302 ones
Origin: https://code.google.com/p/gdata-python-client/issues/detail?id=693#c3
Bug: https://bugs.debian.org/747849
Last-Update: 2014-05-12

--- a/src/gdata/service.py
+++ b/src/gdata/service.py
@@ -1084,7 +1084,7 @@
           return result_body
         return entry
       return feed
-    elif server_response.status == 302:
+    elif server_response.status in (301, 302):
       if redirects_remaining > 0:
         location = (server_response.getheader('Location')
                     or server_response.getheader('location'))
