diff options
author | Felix Fietkau <nbd@openwrt.org> | 2013-07-26 11:36:18 +0200 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2013-07-26 11:36:18 +0200 |
commit | 2dbbb64b4a8ea4aa982c5728b8a267038e2e33d0 (patch) | |
tree | b7b37df80e2944829463b1a3c6d7b0ecbf4137b0 | |
parent | d5710cb4e1ea104915023781da841973cdf37de3 (diff) |
disable keep-alive for POST requests to improve compatibility
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
-rw-r--r-- | client.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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; |