Opened 8 years ago

Closed 8 years ago

#27640 closed Bug (fixed)

HTTPResponse.__repr__ errors when Content-Type header is not defined

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 roboslone)

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).

PR

Change History (5)

comment:1 by Tim Graham, 8 years ago

Description: modified (diff)
Triage Stage: UnreviewedAccepted

comment:2 by roboslone, 8 years ago

Owner: changed from nobody to roboslone
Status: newassigned

comment:3 by roboslone, 8 years ago

Description: modified (diff)
Has patch: set

comment:4 by Tim Graham, 8 years ago

Triage Stage: AcceptedReady for checkin

comment:5 by Tim Graham <timograham@…>, 8 years ago

Resolution: fixed
Status: assignedclosed

In 544b2ef2:

Fixed #27640 -- Fixed HttpResponse's repr() without a 'Content-Type' header.

Note: See TracTickets for help on using tickets.
Back to Top