[1.3.X] Fixed #15672 -- Fixed bug in core/handlers/wsgi.py where we were referring to the 'request' variable before assigning to it. Thanks for the report, vkryachko
Backport of r15918 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.3.X@16009 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
686ef6c759
commit
e5aa2bdcec
|
@ -261,7 +261,7 @@ class WSGIHandler(base.BaseHandler):
|
||||||
try:
|
try:
|
||||||
request = self.request_class(environ)
|
request = self.request_class(environ)
|
||||||
except UnicodeDecodeError:
|
except UnicodeDecodeError:
|
||||||
logger.warning('Bad Request (UnicodeDecodeError): %s' % request.path,
|
logger.warning('Bad Request (UnicodeDecodeError)',
|
||||||
exc_info=sys.exc_info(),
|
exc_info=sys.exc_info(),
|
||||||
extra={
|
extra={
|
||||||
'status_code': 400,
|
'status_code': 400,
|
||||||
|
|
Loading…
Reference in New Issue