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

2020-08-29 Thread Aliona Matveeva
Aliona Matveeva added the comment: hi Karthikeyan Singaravelan! I'm working with a russian database called 1C. it's pretty popular here in Russia, and its 'twist' is that everything there (I mean code) is written in Russian, i.e. cyrillic. So it's obvious and normal that the request/response

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

2020-08-29 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Can you please add a short script explaining the problem? There were some recent security issues fixed in http.client disallowing non-ascii headers issue39603 -- nosy: +xtreak ___ Python tracker

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

2020-08-28 Thread Aliona Matveeva
New submission from Aliona Matveeva : 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 (