diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2014-10-27 11:19:07 +0100 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2014-10-27 11:19:07 +0100 |
commit | 5d1e339988c1e53ee7ed6c0c5592fdb9410a4a42 (patch) | |
tree | e720663da03fdb6d3207a87587bbef4f3b99695f | |
parent | d09bf11d572207b79286cdb5e6253278ebec147c (diff) |
file: do not emit Content-Length header for 304/412 responses
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
-rw-r--r-- | file.c | 1 |
1 files changed, 0 insertions, 1 deletions
@@ -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); |