#25623: Django always returns a white page along with 400 on latin encoded URLs.
-------------------------------+------------------------------------
Reporter: shredding | Owner: nobody
Type: Bug | Status: new
Component: HTTP handling | Version: 1.8
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------+------------------------------------
Comment (by DheerendraRathor):
In the part mentioned by OP,
{{{
def get_path_info(environ):
"""
Returns the HTTP request's PATH_INFO as a unicode string.
"""
path_info = get_bytes_from_wsgi(environ, 'PATH_INFO', '/')
return path_info.decode(UTF_8)
}}}
I changed `UTF-8 ` to `ISO_8859_1` in my local Django installation and
then it was correctly throwing 404 instead of 400.
--
Ticket URL: <https://code.djangoproject.com/ticket/25623#comment:4>
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/067.7a636b0c91dada5863a6e8db63a0b0a6%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.