Skip to content
Browse files

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

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

git-svn-id: bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
1 parent 3e18969 commit 2f9658fc3a6219a5faa2725bbaabaea36df076ee @adrianholovaty adrianholovaty committed
Showing with 1 addition and 1 deletion.
  1. +1 −1  django/core/handlers/
2  django/core/handlers/
@@ -261,7 +261,7 @@ def __call__(self, environ, start_response):
request = self.request_class(environ)
except UnicodeDecodeError:
- logger.warning('Bad Request (UnicodeDecodeError): %s' % request.path,
+ logger.warning('Bad Request (UnicodeDecodeError)',
'status_code': 400,
alswl added a note
                        '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

0 comments on commit 2f9658f

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