[New-bugs-announce] [issue41658] http.client not allowing non-ascii in headers
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)
title: http.client not allowing non-ascii in headers
versions: Python 3.8
Python tracker <report at bugs.python.org>
More information about the New-bugs-announce