Title: httplib.HTTPConnection.request() bug
Type: Stage:
Components: Library (Lib) Versions: Python 2.4
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: jhylton Nosy List: jhylton, jjlee
Priority: high Keywords: patch

Created on 2004-07-25 17:56 by jjlee, last changed 2004-07-27 19:56 by jjlee. This issue is now closed.

File name Uploaded Description Edit jjlee, 2004-07-27 19:55 version 2 jjlee, 2004-07-27 19:56
Messages (4)
msg46457 - (view) Author: John J Lee (jjlee) Date: 2004-07-25 17:56
996159 reveals a problem with 

The underlying problem is that, while this method checks 
no explicit Host: header was provided, it fails to do the 
same for Accept-Encoding: and Content-Length:

This patch fixes that.
msg46458 - (view) Author: John J Lee (jjlee) Date: 2004-07-25 18:00
Logged In: YES 

This is important to get into 2.4, because it breaks urllib2.

I haven't run the tests yet, or done any manual tests.  I'll try 
and do that tomorrow.
msg46459 - (view) Author: John J Lee (jjlee) Date: 2004-07-25 18:09
Logged In: YES 

Of course, urllib2 should also be fixed not to add Host and 
Content-Length headers (httplib makes a better job of it), but 
that's a separate bug which I'll file separately.
msg46460 - (view) Author: John J Lee (jjlee) Date: 2004-07-27 19:55
Logged In: YES 

OK, I have now tested my patch, and uploaded a new one which
is syntactically correct ;-) along with a patch for the test
I added to

No doc changes are required.
Date User Action Args
2004-07-25 17:56:20jjleecreate