Ticket #6168 enhancement new
Enforce type (bytes) of header name and values in twisted.web.http_headers
| Reported by: | exarkun | Owned by: | borko |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | web | Keywords: | |
| Cc: | jknight | Branch: | |
| Author: | Launchpad Bug: |
Description
The names of items in the HTTP header are bytes. The values are lists of bytes. Python makes it particularly easy to mix up bytes and text (str). To help developers avoid making this mistake, Headers should apply type checks where applications are supplying values for any of these things.
There's already a type check for values being a list of something.
Attachments
Change History
Note: See
TracTickets for help on using
tickets.

