From f0cf8ade85dc67a06e8f5bbbd8127fb69025b095 Mon Sep 17 00:00:00 2001 From: Juhani Haverinen Date: Sat, 10 Jan 2015 18:39:10 +0200 Subject: [PATCH] Fixed charset info in HTTP header --- gophersrv.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gophersrv.py b/gophersrv.py index 311444f..7804a56 100644 --- a/gophersrv.py +++ b/gophersrv.py @@ -100,7 +100,7 @@ def getrequest(conn): def sendheader(conn, ishttp): if ishttp: # Default to text/plain - contenttype="text/plain; encoding=utf-8" + contenttype="text/plain; charset=utf-8" conn.sendall('HTTP/1.1 200 OK\r\n' 'Content-type: %s\r\n' '\r\n' % contenttype)