diff options
| author | Meurig Freeman | 2011-10-31 04:02:40 +0000 |
|---|---|---|
| committer | Meurig Freeman | 2011-10-31 04:02:40 +0000 |
| commit | e7047053833d791426871835106c2f12517e7adc (patch) | |
| tree | 86d995d6041141269c0968f539541311ad457820 | |
| parent | 5541f0af448bfdfbc212deddca6571314446a071 (diff) | |
| download | django-rest-framework-e7047053833d791426871835106c2f12517e7adc.tar.bz2 | |
whitespace fix
| -rw-r--r-- | djangorestframework/views.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/djangorestframework/views.py b/djangorestframework/views.py index f8434b40..3829e7c0 100644 --- a/djangorestframework/views.py +++ b/djangorestframework/views.py @@ -113,7 +113,7 @@ class View(ResourceMixin, RequestMixin, ResponseMixin, AuthMixin, DjangoView): 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 @@ class View(ResourceMixin, RequestMixin, ResponseMixin, AuthMixin, DjangoView): # 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) |
