why can i still able to reproduce the SimpleHTTPServer bug whichis said fixed 3 years ago?

Irmen de Jong irmen.NOSPAM at xs4all.nl
Thu Jun 19 08:57:58 CEST 2008


Terry Reedy wrote:
> "Gabriel Genellina" <gagsl-py2 at yahoo.com.ar> wrote in message 
> news:op.ucokc3o6x6zn5v at gabriel2.softlabbsas.com.ar...
> En Fri, 13 Jun 2008 04:02:48 -0300, Leo Jay <python.leojay at gmail.com>
> escribió:
> 
>> http://bugs.python.org/issue1097597
>>
>> in my python 2.5.2,  i still find these code in SimpleHTTPServer.py,
>> is that deliberate?
> 
> According to http://bugs.python.org/issue839496 it should have been
> corrected, but apparently the patch was only applied to the 2.4
> maintenance branch, not to the trunk. Both 2.5 and 2.6 have the same
> problem. 3.0 doesn't have this problem but probably it was fixed
> independently.
> ===========================
> 
> I reopened this so it will appear on the weekly bug report, in case the 
> original committer does not see it.
>

Is jlgijsbers still around? :)

Seeing that Python 2.6 is now in beta phase, I'd love to see this 3 year old bug fixed 
before 2.6 is released.  The fix is extremely simple: just always open the file in 
binary mode (i.e. remove the test for the file type).

--irmen



More information about the Python-list mailing list