Skip to content

Commit

Permalink
- GeoServer returns directly SLD Body as HttpResponse
Browse files Browse the repository at this point in the history
  • Loading branch information
afabiani committed Mar 21, 2017
1 parent 70e10d9 commit 011e045
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions geonode/utils.py
Expand Up @@ -576,6 +576,8 @@ def json_response(body=None, errors=None, redirect_to=None, exception=None,
exception message will be used as a format option to that string and the
result will be a success=False, errors = body % exception
"""
if isinstance(body, HttpResponse):
return body
if content_type is None:
content_type = "application/json"
if errors:
Expand Down

0 comments on commit 011e045

Please sign in to comment.