This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: urllib2.py assumes 206 is an error
Type: Stage:
Components: Library (Lib) Versions: Python 2.3
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: Nosy List: barry-scott, georg.brandl, jimjjewett, jjlee
Priority: normal Keywords:

Created on 2005-04-06 22:52 by barry-scott, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
urllib2.patch barry-scott, 2005-04-10 21:16 urllib2.patch
Messages (4)
msg24928 - (view) Author: Barry Alan Scott (barry-scott) * Date: 2005-04-06 22:52
I'm writting code that uses the Range header. The
correct response is 206, but the urllib2.py is coded to
treat any code that is not 200 as error. The correct
code needs to treat 200 to 299 as success.

The attached patch fixes the problem.
msg24929 - (view) Author: Jim Jewett (jimjjewett) Date: 2005-04-08 16:17
Logged In: YES 
user_id=764593

Please re-attach.  SF didn't get the file.
msg24930 - (view) Author: John J Lee (jjlee) Date: 2005-05-19 19:07
Logged In: YES 
user_id=261020

Please close: this is already fixed in 2.4.
msg24931 - (view) Author: Georg Brandl (georg.brandl) * (Python committer) Date: 2005-06-26 21:48
Logged In: YES 
user_id=1188172

It seems that jjlee is right. Closing as Fixed.
History
Date User Action Args
2022-04-11 14:56:10adminsetgithub: 41819
2005-04-06 22:52:47barry-scottcreate