From: Jo-Philipp Wich Date: Mon, 27 Oct 2014 10:19:07 +0000 (+0100) Subject: file: do not emit Content-Length header for 304/412 responses X-Git-Url: http://git.archive.openwrt.org/?p=project%2Fuhttpd.git;a=commitdiff_plain;h=5d1e339988c1e53ee7ed6c0c5592fdb9410a4a42 file: do not emit Content-Length header for 304/412 responses Signed-off-by: Jo-Philipp Wich --- diff --git a/file.c b/file.c index 055035e..6b3bb82 100644 --- a/file.c +++ b/file.c @@ -567,7 +567,6 @@ static void uh_file_data(struct client *cl, struct path_info *pi, int fd) !uh_file_if_range(cl, &pi->stat) || !uh_file_if_unmodified_since(cl, &pi->stat) || !uh_file_if_none_match(cl, &pi->stat)) { - ustream_printf(cl->us, "Content-Length: 0\r\n"); ustream_printf(cl->us, "\r\n"); uh_request_done(cl); close(fd);