Fixed charset info in HTTP header

This commit is contained in:
Juhani Haverinen 2015-01-10 18:39:10 +02:00
parent 949ff71378
commit f0cf8ade85
1 changed files with 1 additions and 1 deletions

View File

@ -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)