STINNER Victor added the comment:
Ah, on IRC Xiang told me that send_header("Connection", 1) raises an
error. Right, *this* specific case raises an error. But I don't think
that it's worth to require text for HTTP header values.
If you consider that it's a shame, Python should handle this corner
case (sorry, what is use case for "Connection: 1" ? :-D), please open
a new issue.
If you consider that the doc the HTTP server must be more explicit on
the accepted types, please mention that integers are accepted for
values, not only text.
----------
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue27414>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com