Skip to content

Commit

Permalink
Set content-type and encode all strings to utf-8
Browse files Browse the repository at this point in the history
  • Loading branch information
n-i-x committed Feb 16, 2013
1 parent de5e2b5 commit bb00698
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mediaserver.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,8 @@ def render_GET(self, request):
return NoResource()

self.logger.debug('Response: %s', response)
return response
request.setHeader("Content-Type", "text/xml; charset=utf-8")
return response.encode('utf-8')

def render_POST(self, request):
self.logger.debug('Request args for %s from %s: %s', request.path,
Expand Down

0 comments on commit bb00698

Please sign in to comment.