Fixed charset info in HTTP header
This commit is contained in:
parent
949ff71378
commit
f0cf8ade85
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue