Skip to content
This repository has been archived by the owner on Apr 9, 2023. It is now read-only.

Commit

Permalink
if content type alread set, do not override it
Browse files Browse the repository at this point in the history
  • Loading branch information
vangheem committed Feb 27, 2017
1 parent d057440 commit ca9c3df
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/plone.server/plone/server/renderers.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,9 +145,10 @@ async def __call__(self, value):
value = aioResponse(
body=body, status=value.status,
headers=value.headers)
value.headers.update({
'content-type': 'text/html'
})
if 'content-type' not in value.headers:
value.headers.update({
'content-type': 'text/html'
})
return value


Expand Down

0 comments on commit ca9c3df

Please sign in to comment.