Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

whitespace fix

  • Loading branch information...
commit e7047053833d791426871835106c2f12517e7adc 1 parent 5541f0a
@meurig authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 djangorestframework/views.py
View
4 djangorestframework/views.py
@@ -113,7 +113,7 @@ def dispatch(self, request, *args, **kwargs):
self.headers = {}
# Calls to 'reverse' will not be fully qualified unless we set the scheme/host/port here.
- orig_prefix = get_script_prefix()
+ orig_prefix = get_script_prefix()
prefix = '%s://%s' % (request.is_secure() and 'https' or 'http', request.get_host())
set_script_prefix(prefix + orig_prefix)
@@ -157,7 +157,7 @@ def dispatch(self, request, *args, **kwargs):
# merge with headers possibly set at some point in the view
response.headers.update(self.headers)
- set_script_prefix(orig_prefix)
+ set_script_prefix(orig_prefix)
return self.render(response)
Please sign in to comment.
Something went wrong with that request. Please try again.