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)