projects
/
project
/
uhttpd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
utils: do not emit eof chunk for 204/304 responses
[project/uhttpd.git]
/
utils.c
diff --git
a/utils.c
b/utils.c
index
1c21fc5
..
1092a7d
100644
(file)
--- a/
utils.c
+++ b/
utils.c
@@
-28,6
+28,10
@@
bool uh_use_chunked(struct client *cl)
if (cl->request.method == UH_HTTP_MSG_HEAD || cl->request.method == UH_HTTP_MSG_OPTIONS)
return false;
+ /* RFC2616 10.2.5, 10.3.5 */
+ if (cl->http_code == 204 || cl->http_code == 304)
+ return false;
+
return true;
}