summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2013-07-26 11:36:45 +0200
committerFelix Fietkau <nbd@openwrt.org>2013-07-26 11:36:45 +0200
commit135afd6343e524cb4fb0e6579cc3447531a401fa (patch)
tree689955d7a989f39f8ac1dac9e305653023e1f84f
parent2dbbb64b4a8ea4aa982c5728b8a267038e2e33d0 (diff)
disable connection_close override if a keep-alive header is found
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
-rw-r--r--client.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/client.c b/client.c
index 15f3d8c..9d0ccb7 100644
--- 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;