[issue38831] urllib.request header characters being changed to lowercase

2019-11-17 Thread Eric V. Smith
Eric V. Smith added the comment: Yes, this does seem to be a duplicate. I'll close this. -- resolution: -> duplicate stage: -> resolved status: open -> closed ___ Python tracker

[issue38831] urllib.request header characters being changed to lowercase

2019-11-17 Thread Martin Panter
Martin Panter added the comment: I suggest to keep the discussion with Issue 12455 -- nosy: +martin.panter superseder: -> urllib2 forces title() on header names, breaking some requests ___ Python tracker

[issue38831] urllib.request header characters being changed to lowercase

2019-11-17 Thread Eric V. Smith
Eric V. Smith added the comment: Well, the standard says they're case insensitive: https://tools.ietf.org/html/rfc7230#section-3.2 Forcing the case on the header item seems quite deliberate: https://github.com/python/cpython/blob/master/Lib/urllib/request.py#L399 I assume that the

[issue38831] urllib.request header characters being changed to lowercase

2019-11-17 Thread rosoroso
New submission from rosoroso : When using the urllib request headers, I've found that certain letters are converted to their lowercase versions whilst part of a request object (H->h in the example, see at bottom). Whilst this should not usually be an issue (Since headers are not supposed to