From 2dbbb64b4a8ea4aa982c5728b8a267038e2e33d0 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Fri, 26 Jul 2013 11:36:18 +0200 Subject: [PATCH] disable keep-alive for POST requests to improve compatibility Signed-off-by: Felix Fietkau --- client.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/client.c b/client.c index a971b3b..15f3d8c 100644 --- 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; -- 2.25.1