Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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 authored March 26, 2011

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. 2  django/core/handlers/wsgi.py
2  django/core/handlers/wsgi.py
@@ -261,7 +261,7 @@ def __call__(self, environ, start_response):
261 261
             try:
262 262
                 request = self.request_class(environ)
263 263
             except UnicodeDecodeError:
264  
-                logger.warning('Bad Request (UnicodeDecodeError): %s' % request.path,
  264
+                logger.warning('Bad Request (UnicodeDecodeError)',
265 265
                     exc_info=sys.exc_info(),
266 266
                     extra={
267 267
                         'status_code': 400,

0 notes on commit 2f9658f

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.