projects
/
oweals
/
uhttpd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d5710cb
)
disable keep-alive for POST requests to improve compatibility
author
Felix Fietkau
<nbd@openwrt.org>
Fri, 26 Jul 2013 09:36:18 +0000
(11:36 +0200)
committer
Felix Fietkau
<nbd@openwrt.org>
Fri, 26 Jul 2013 09:36:18 +0000
(11:36 +0200)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
client.c
patch
|
blob
|
history
diff --git
a/client.c
b/client.c
index a971b3b6216f3f63cefda9d59e58dd98bba3083f..15f3d8c1922da6e0223fc85d2e2c5356149a467d 100644
(file)
--- a/
client.c
+++ b/
client.c
@@
-180,7
+180,8
@@
static int client_parse_request(struct client *cl, char *data)
req->method = h_method;
req->version = h_version;
- if (req->version < UH_HTTP_VER_1_1 || !conf.http_keepalive)
+ if (req->version < UH_HTTP_VER_1_1 || req->method == UH_HTTP_MSG_POST ||
+ !conf.http_keepalive)
req->connection_close = true;
return CLIENT_STATE_HEADER;