Revision b698d39d snf-django-lib/snf_django/lib/api/__init__.py

b/snf-django-lib/snf_django/lib/api/__init__.py
155 155

  
156 156

  
157 157
def update_response_headers(request, response):
158
    if not response.has_header("Content-Type"):
158
    if not getattr(response, "override_serialization", False):
159 159
        serialization = request.serialization
160 160
        if serialization == "xml":
161 161
            response["Content-Type"] = "application/xml; charset=UTF-8"

Also available in: Unified diff