Skip to content

Commit 5f4dd27

Browse files
committed
Bugfix: Content-Type
The content type header in function send_response in module utils.py was wrong: - server.send("Content type:" + content_type + "\r\n") + server.send("Content-Type: " + content_type + "\r\n")
1 parent b8cf81a commit 5f4dd27

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

utils.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@
9494
def send_response(server, response, http_code=200, content_type="text/html", extend_headers=None):
9595
""" send response """
9696
server.send("HTTP/1.0 " + str(http_code) + " " + HTTP_CODES.get(http_code) + "\r\n")
97-
server.send("Content type:" + content_type + "\r\n")
97+
server.send("Content-Type: " + content_type + "\r\n")
9898
if extend_headers is not None:
9999
for header in extend_headers:
100100
server.send(header + "\r\n")

0 commit comments

Comments
 (0)