Message50952
| Author |
jjlee |
| Recipients |
| Date |
2006年08月19日.01:48:11 |
| SpamBayes Score |
| Marked as misclassified |
| Message-id |
| In-reply-to |
| Content |
Patch 1459963 (applied in 50842) needlessly breaks the
old (albeit undocumented) interface of direct access to
request.headers (which existed prior to the
introduction of method. That patch changes the case of
the keys of the request.headers dictionary. That seems
guaranteed to break existing code.
The attached patch reverts 50842's changes to urllib2
(it does not revert the changes to urllib) and fixes
the reported issue with a one-line fix in
AbstractHTTPHandler (.title()-case the HTTP headers
before sending them to httplib). That fix is also more
localised to HTTP -- urllib2 knows about other
protocols too. This patch also corrects a mis-wording
in Misc/NEWS: the old case convention was not strictly
incorrect (according to RFC 2616), but just did not
follow the usual title-case convention.
If the original patch was applied to the 2.4
maintenance branch, I guess this patch should be
applied there too.
|
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2007年08月23日 15:54:16 | admin | link | issue1542948 messages |
| 2007年08月23日 15:54:16 | admin | create |
|