[issue43474] http.server.BaseHTTPRequestHandler end_header() fails

Andrei Kulakov report at bugs.python.org
Sat Jul 3 22:57:21 EDT 2021


Andrei Kulakov <andrei.avk at 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 <report at bugs.python.org>
<https://bugs.python.org/issue43474>
_______________________________________


More information about the Python-bugs-list mailing list