aboutsummaryrefslogtreecommitdiff
path: root/src/microhttpd/connection.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/microhttpd/connection.c')
-rw-r--r--src/microhttpd/connection.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/microhttpd/connection.c b/src/microhttpd/connection.c
index 8b136b83..0b040290 100644
--- a/src/microhttpd/connection.c
+++ b/src/microhttpd/connection.c
@@ -1646,9 +1646,9 @@ build_header_response (struct MHD_Connection *connection)
1646 simply only force adding a content-length header if this 1646 simply only force adding a content-length header if this
1647 is not a 'connect' or if the response is not empty 1647 is not a 'connect' or if the response is not empty
1648 (which is kind of more sane, because if some crazy 1648 (which is kind of more sane, because if some crazy
1649 application did return content with a 2xx status code, 1649 application did return content with a 2xx status code,
1650 then having a content-length might again be a good idea). 1650 then having a content-length might again be a good idea).
1651 1651
1652 Note that the change from 'SHOULD NOT' to 'MUST NOT' is 1652 Note that the change from 'SHOULD NOT' to 'MUST NOT' is
1653 a recent development of the HTTP 1.1 specification. 1653 a recent development of the HTTP 1.1 specification.
1654 */ 1654 */
@@ -2886,7 +2886,7 @@ parse_connection_headers (struct MHD_Connection *connection)
2886 MHD_DLOG (connection->daemon, 2886 MHD_DLOG (connection->daemon,
2887 "Failed to parse `Content-Length' header. Closing connection.\n"); 2887 "Failed to parse `Content-Length' header. Closing connection.\n");
2888#endif 2888#endif
2889 CONNECTION_CLOSE_ERROR (connection, 2889 CONNECTION_CLOSE_ERROR (connection,
2890 NULL); 2890 NULL);
2891 return; 2891 return;
2892 } 2892 }