[New-bugs-announce] [issue41658] http.client not allowing non-ascii in headers

Aliona Matveeva report at bugs.python.org
Fri Aug 28 17:04:14 EDT 2020


New submission from Aliona Matveeva <yellalena at gmail.com>:

http.client trying to decode any header with 'latin-1', which fails when there is any non-ascii symbols in it, for example, Cyrillic. 

I propose to check if it's non-ascii and then decode it with 'utf-8', works perfectly.

----------
components: Library (Lib)
messages: 376047
nosy: yellalena
priority: normal
severity: normal
status: open
title: http.client not allowing non-ascii in headers
versions: Python 3.8

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue41658>
_______________________________________


More information about the New-bugs-announce mailing list