Re: Bugs: Content-Length not updated by reused urllib.request.Request/ has_header() case-sensitive
On 11/12/2012 5:59 PM, Cameron Simpson wrote:
> On 12Nov2012 16:35, Terry Reedy <email@example.com> wrote:
> | On 11/12/2012 10:52 AM, Johannes Kleese wrote:
> | > While at it, I noticed that urllib.request.Request.has_header() and
> | > .get_header() are case-sensitive,
> | Python is case sensitive.
To be more precise, Python string comparisons are by codepoints. If one
wants normalized comparison, one usually has to do do the normalization
> But headers are not. I'd be very inclined to consider case sensitivity
> in has_header and get_header to be a bug, absent a compelling argument
> against it.
It appears that the behavior is not consistent with doc examples and
other header name handling. I added a note to
Terry Jan Reedy
|All times are GMT. The time now is 09:32 PM.|
Powered by vBulletin®. Copyright ©2000 - 2014, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.