[Python-modules-commits] r28872 - in packages/python-gdata/trunk/debian (3 files)

mitya57-guest at users.alioth.debian.org mitya57-guest at users.alioth.debian.org
Mon May 12 12:59:27 UTC 2014


    Date: Monday, May 12, 2014 @ 12:59:26
  Author: mitya57-guest
Revision: 28872

Add handle_redirects.patch to fix issues with Google forcing HTTPS URIs

Added:
  packages/python-gdata/trunk/debian/patches/handle_redirects.patch
Modified:
  packages/python-gdata/trunk/debian/changelog
  packages/python-gdata/trunk/debian/patches/series

Modified: packages/python-gdata/trunk/debian/changelog
===================================================================
--- packages/python-gdata/trunk/debian/changelog	2014-05-11 17:06:14 UTC (rev 28871)
+++ packages/python-gdata/trunk/debian/changelog	2014-05-12 12:59:26 UTC (rev 28872)
@@ -2,6 +2,8 @@
 
   * Remove Gustavo from Uploaders (closes: #729389). Thanks for the
     previous work!
+  * Add handle_redirects.patch to fix issues with Google forcing
+    HTTPS URIs (closes: #747849).
 
  -- Dmitry Shachnev <mitya57 at gmail.com>  Sat, 23 Nov 2013 20:12:59 +0400
 

Added: packages/python-gdata/trunk/debian/patches/handle_redirects.patch
===================================================================
--- packages/python-gdata/trunk/debian/patches/handle_redirects.patch	                        (rev 0)
+++ packages/python-gdata/trunk/debian/patches/handle_redirects.patch	2014-05-12 12:59:26 UTC (rev 28872)
@@ -0,0 +1,16 @@
+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'))

Modified: packages/python-gdata/trunk/debian/patches/series
===================================================================
--- packages/python-gdata/trunk/debian/patches/series	2014-05-11 17:06:14 UTC (rev 28871)
+++ packages/python-gdata/trunk/debian/patches/series	2014-05-12 12:59:26 UTC (rev 28872)
@@ -2,3 +2,4 @@
 fix_shebangs.patch
 testsuite_improvements.patch
 disable_network_test.patch
+handle_redirects.patch




More information about the Python-modules-commits mailing list