Gregory P. Smith added the comment: The obvious fix seems to be to not use splitlines but explicitly split on the allowed characters for ASCII based protocols and formats that only want \r and \n to be considered.
I don't think we can rightfully change the unicode splitlines behavior. ---------- nosy: +gregory.p.smith title: http.client splits headers on none-\r\n characters -> http.client splits headers on non-\r\n characters _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue22233> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com