From fce64cda4cab0ec7b36605ff1065117d7b2e1804 Mon Sep 17 00:00:00 2001 From: Patrick Gansterer Date: Thu, 27 Feb 2014 11:42:41 +0100 Subject: [PATCH] Fix Content-Type header of http status response MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The header for setting the mime type is called ‘Content-Type’ and not ‘Mime-Type’. --- lib/server.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/server.c b/lib/server.c index 11632c13..bf9080a9 100644 --- a/lib/server.c +++ b/lib/server.c @@ -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" "

%u %s

%s", code, description, code, description, html_body);