Commit 1e632d32 authored by Sergey Lyubka's avatar Sergey Lyubka

Removed "Content-Type: text/plain" header from send_http_error() response.

parent 5642dfcf
...@@ -900,7 +900,6 @@ static void send_http_error(struct mg_connection *conn, int status, ...@@ -900,7 +900,6 @@ static void send_http_error(struct mg_connection *conn, int status,
DEBUG_TRACE(("[%s]", buf)); DEBUG_TRACE(("[%s]", buf));
mg_printf(conn, "HTTP/1.1 %d %s\r\n" mg_printf(conn, "HTTP/1.1 %d %s\r\n"
"Content-Type: text/plain\r\n"
"Content-Length: %d\r\n" "Content-Length: %d\r\n"
"Connection: %s\r\n\r\n", status, reason, len, "Connection: %s\r\n\r\n", status, reason, len,
suggest_connection_header(conn)); suggest_connection_header(conn));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment