Andrei Kulakov <andrei....@gmail.com> added the comment:
Why do you need to `end_headers()` before first doing `send_header()`? I guess the normal use should be: if headers: for h in headers: send_header(h) end_headers() ---------- nosy: +andrei.avk _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue43474> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com