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:
parent
86267d94ad
commit
111c83df43
1 changed files with 1 additions and 1 deletions
|
@ -474,7 +474,7 @@ LWS_VISIBLE LWS_EXTERN 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);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue