disable connection_close override if a keep-alive header is found
authorFelix Fietkau <nbd@openwrt.org>
Fri, 26 Jul 2013 09:36:45 +0000 (11:36 +0200)
committerFelix Fietkau <nbd@openwrt.org>
Fri, 26 Jul 2013 09:36:45 +0000 (11:36 +0200)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
client.c

index 15f3d8c1922da6e0223fc85d2e2c5356149a467d..9d0ccb7492e2e899fdcb5ca097e850298f752a96 100644 (file)
--- a/client.c
+++ b/client.c
@@ -293,8 +293,6 @@ static void client_parse_header(struct client *cl, char *data)
        } else if (!strcmp(data, "connection")) {
                if (!strcasecmp(val, "close"))
                        r->connection_close = true;
-               else if (!strcasecmp(val, "keep-alive"))
-                       r->connection_close = false;
        } else if (!strcmp(data, "user-agent")) {
                char *str;