diff options
Diffstat (limited to 'middleware.py')
-rw-r--r-- | middleware.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/middleware.py b/middleware.py index 15dd039..7c27500 100644 --- a/middleware.py +++ b/middleware.py @@ -19,7 +19,7 @@ class SmartAppendSlashMiddleware(object): """ # Check for a redirect based on settings.SMART_APPEND_SLASH - host = http.get_host(request) + host = http.HttpRequest.get_host(request) old_url = [host, request.path] new_url = old_url[:] # Append a slash if SMART_APPEND_SLASH is set and the resulting URL |