[Python-modules-team] Bug#699844: requests mis-treats 303 responses due to a typo

Jakub Wilk jwilk at debian.org
Sat Feb 16 12:34:35 UTC 2013

* Daniele Tricoli <eriol at mornie.org>, 2013-02-16, 01:31:
>>I've attached upstream's fix. Some bits:
>> Caused by using `is' on ints, rather then "==". Upstream bug 1156[1],
>> fixed in commit b07c1ebd859a32e1203c1d4ef27f1fb9e154e55e (attached).
>>This violates a "SHOULD" in the HTTP/1.1 RFC, and it'd be really nice 
>>to get this fixed for wheezy, if there is a way to get such a small 
>>change in.
>As you already noticed 1.1.0 is currently in experimental, but if you 
>need this, I can include the patch in 1.1.0-2.

As far as I can see, 0.12.1 might be affected as well, although probably 
only rarely used code paths are affected:

$ grep -cr 'status_code is' requests/models.py 

Jakub Wilk

More information about the Python-modules-team mailing list