Set content-type and encode all strings to utf-8
1 parent de5e2b5 commit bb006987908276d502e136e9e52292f1896274e4
@Jeff Rebeiro Jeff Rebeiro authored on 16 Feb 2013
Showing 1 changed file
View
4
mediaserver.py
request.getClientIP(), request.path)
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,
request.getClientIP(), request.args)