1
0
Fork 0
mirror of https://github.com/warmcat/libwebsockets.git synced 2025-03-09 00:00:04 +01:00

Fix Content-Type header of http status response

The header for setting the mime type is called ‘Content-Type’ and not ‘Mime-Type’.
This commit is contained in:
Patrick Gansterer 2014-02-27 11:42:41 +01:00 committed by Andy Green
parent 81338aa886
commit fce64cda4c

View file

@ -474,7 +474,7 @@ LWS_VISIBLE int libwebsockets_return_http_status(
n = sprintf((char *)context->service_buffer,
"HTTP/1.0 %u %s\x0d\x0a"
"Server: libwebsockets\x0d\x0a"
"Mime-Type: text/html\x0d\x0a\x0d\x0a"
"Content-Type: text/html\x0d\x0a\x0d\x0a"
"<h1>%u %s</h1>%s",
code, description, code, description, html_body);