#20889: HttpResponseBase._convert_to_charset complains about newline it inserted
itself
-------------------------------+--------------------------------------
     Reporter:  mjl@…          |                    Owner:  rednaw
         Type:  Uncategorized  |                   Status:  assigned
    Component:  HTTP handling  |                  Version:  1.5
     Severity:  Normal         |               Resolution:
     Keywords:  nlsprint14     |             Triage Stage:  Unreviewed
    Has patch:  1              |      Needs documentation:  0
  Needs tests:  0              |  Patch needs improvement:  0
Easy pickings:  0              |                    UI/UX:  0
-------------------------------+--------------------------------------

Comment (by mjl):

 Actually, I'm not sure that the check for newline is actually correct.
 There is no problem with a newline in a header '''as long as it's followed
 by white space''', which means it's a continuation line and will be folded
 back at the other end.

 I understand where that check comes from though, there have been too many
 header injections out there.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/20889#comment:10>
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.0260fb349d3d5767454f4c3854855326%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to