Opened 9 years ago
Last modified 9 years ago
#27640 closed Bug
HTTPResponse.__repr__ errors when Content-Type header is not defined — at Version 3
| Reported by: | Adam Johnson | Owned by: | roboslone |
|---|---|---|---|
| Component: | HTTP handling | Version: | 1.10 |
| Severity: | Normal | Keywords: | |
| Cc: | me@… | Triage Stage: | Ready for checkin |
| Has patch: | yes | Needs documentation: | no |
| Needs tests: | no | Patch needs improvement: | no |
| Easy pickings: | no | UI/UX: | no |
Description (last modified by )
As reported on the mailing list, HTTPResponse.__repr__ crashes when the Content-Type header is not defined. It's legitimate that it's not defined when there is no body, e.g. for HTTP 204 responses (StackOverflow).
Change History (3)
comment:1 by , 9 years ago
| Description: | modified (diff) |
|---|---|
| Triage Stage: | Unreviewed → Accepted |
comment:2 by , 9 years ago
| Owner: | changed from to |
|---|---|
| Status: | new → assigned |
comment:3 by , 9 years ago
| Description: | modified (diff) |
|---|---|
| Has patch: | set |
Note:
See TracTickets
for help on using tickets.