Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #33211 > unrolled thread
| Started by | Terry Reedy <tjreedy@udel.edu> |
|---|---|
| First post | 2012-11-12 20:41 -0500 |
| Last post | 2012-11-12 20:41 -0500 |
| Articles | 1 — 1 participant |
Back to article view | Back to comp.lang.python
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
Re: Bugs: Content-Length not updated by reused urllib.request.Request / has_header() case-sensitive Terry Reedy <tjreedy@udel.edu> - 2012-11-12 20:41 -0500
| From | Terry Reedy <tjreedy@udel.edu> |
|---|---|
| Date | 2012-11-12 20:41 -0500 |
| Subject | Re: Bugs: Content-Length not updated by reused urllib.request.Request / has_header() case-sensitive |
| Message-ID | <mailman.3602.1352770923.27098.python-list@python.org> |
On 11/12/2012 5:59 PM, Cameron Simpson wrote: > On 12Nov2012 16:35, Terry Reedy <tjreedy@udel.edu> 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 oneself. > 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 http://bugs.python.org/issue12455 -- Terry Jan Reedy
Back to top | Article view | comp.lang.python
csiph-web