#49 Set the content_type and the charset of the page returned
Merged 8 years ago by pingou. Opened 8 years ago by pingou.

file modified
+4 -1
@@ -350,7 +350,10 @@ 

  

  @asyncio.coroutine

  def index(request):

-     return web.Response(body=INDEX.encode('utf-8'))

+     return web.Response(

+         body=INDEX.encode('utf-8'),

+         content_type='text/html',

+         charset='utf-8')

  

  

  @asyncio.coroutine

no initial comment

Pull-Request has been merged by pingou

8 years ago
Metadata