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.

Author BitTorment
Recipients BitTorment, frispete, jjlee, orsenthil
Date 2008-05-06.12:21:42
SpamBayes Score 0.028550161
Marked as misclassified No
Message-id <1210076506.46.0.590277446088.issue2275@psf.upfronthosting.co.za>
In-reply-to
Content
This looks good.  I would suggest that the unredirected_hdrs would use
the CaseInsensitiveDict too.

There is still the problem (from the test documentation) that accessing
.headers directly will only show a subset of headers i.e. it won't show
any headers from .unredirected_hdrs.  Have you any suggestions as to how
they both can be accessed from the same interface?

The test documentation also says:

"Note the case normalization of header names here, to
.capitalize()-case.  This should be preserved for
backwards-compatibility.  (In the HTTP case, normalization to
.title()-case is done by urllib2 before sending headers to
httplib)."

It suggests that capitalize() should be kept for backwards
compatibility.  I have tested and the headers actually sent to the
server are in title()-case even though they are stored in the Request
object as captitalize()-case.

This would initially suggest that the case-normalization should be
removed from the patch.  However, as .headers would now be using a
case-insensitive dictionary, this would still ensure backwards compatibily.
History
Date User Action Args
2008-05-06 12:21:47BitTormentsetspambayes_score: 0.0285502 -> 0.028550161
recipients: + BitTorment, jjlee, orsenthil, frispete
2008-05-06 12:21:46BitTormentsetspambayes_score: 0.0285502 -> 0.0285502
messageid: <1210076506.46.0.590277446088.issue2275@psf.upfronthosting.co.za>
2008-05-06 12:21:45BitTormentlinkissue2275 messages
2008-05-06 12:21:43BitTormentcreate