diff options
| author | Adrian Holovaty <adrian@holovaty.com> | 2006-06-20 04:34:13 +0000 |
|---|---|---|
| committer | Adrian Holovaty <adrian@holovaty.com> | 2006-06-20 04:34:13 +0000 |
| commit | 37addba352b3443c30e6d6d862afe73e158839ca (patch) | |
| tree | 1877b49fb5d66fd2ca4a4e3b0aa4d6f9d2e06c67 /django/middleware/http.py | |
| parent | b93de6a2cb064de3ae74e7dc01a5ec5d7ff900f6 (diff) | |
Converted request.META['REQUEST_METHOD'] calls to request.method, throughout the Django codebase
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3171 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'django/middleware/http.py')
| -rw-r--r-- | django/middleware/http.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/django/middleware/http.py b/django/middleware/http.py index 0a8cd67dfa..12d0c0f683 100644 --- a/django/middleware/http.py +++ b/django/middleware/http.py @@ -31,7 +31,7 @@ class ConditionalGetMiddleware(object): response.content = '' response['Content-Length'] = '0' - if request.META['REQUEST_METHOD'] == 'HEAD': + if request.method == 'HEAD': response.content = '' return response |
