#20889: HttpResponseBase._convert_to_charset complains about newline it inserted
itself
-------------------------------------+-------------------------------------
Reporter: mjl@… | Owner: rednaw
Type: Bug | Status: closed
Component: HTTP handling | Version: master
Severity: Normal | Resolution: fixed
Keywords: nlsprint14 | Triage Stage: Ready for
| checkin
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Comment (by Claude Paroz <claude@…>):
In [changeset:"84e7fec88ddfc4178500a80d640728226d77317a"]:
{{{
#!CommitTicketReference repository=""
revision="84e7fec88ddfc4178500a80d640728226d77317a"
[1.8.x] Fixed #20889 -- Prevented BadHeaderError when Python inserts
newline
Workaround for http://bugs.python.org/issue20747.
In some corner cases, Python 2 inserts a newline in a header value
despite `maxlinelen` passed in Header constructor.
Thanks Tim Graham for the review.
Backport of efb1f99f94 from master.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/20889#comment:17>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/072.268a045c680068fe1b7c0346e3192d28%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.