Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed #15672 -- Fixed bug in core/handlers/wsgi.py where we were refe…

…rring to the 'request' variable before assigning to it. Thanks for the report, vkryachko

git-svn-id: http://code.djangoproject.com/svn/django/trunk@15918 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 2f9658fc3a6219a5faa2725bbaabaea36df076ee 1 parent 3e18969
Adrian Holovaty adrianholovaty authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  django/core/handlers/wsgi.py
2  django/core/handlers/wsgi.py
View
@@ -261,7 +261,7 @@ def __call__(self, environ, start_response):
try:
request = self.request_class(environ)
except UnicodeDecodeError:
- logger.warning('Bad Request (UnicodeDecodeError): %s' % request.path,
+ logger.warning('Bad Request (UnicodeDecodeError)',
exc_info=sys.exc_info(),
extra={
'status_code': 400,
alswl
alswl added a note
                    extra={
                        'status_code': 400,
                        'request': request
                    }

But in this line, the request raise exception again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
alswl
                    extra={
                        'status_code': 400,
                        'request': request
                    }

But in this line, the request raise exception again.

Please sign in to comment.
Something went wrong with that request. Please try again.