summaryrefslogtreecommitdiff
path: root/uclient-http.c
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2014-03-29 20:17:57 +0100
committerFelix Fietkau <nbd@openwrt.org>2014-03-29 20:17:57 +0100
commit760cd6fe53316248039395257b35d77f413c1cbb (patch)
treefae9e507de46908851d20ffeb4861ba76f8b33b7 /uclient-http.c
parent3771a9369ab2e025f3baa15ddc1423ff41ee977f (diff)
downloaduclient-760cd6fe53316248039395257b35d77f413c1cbb.tar.gz
avoid sending duplicate headers
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Diffstat (limited to 'uclient-http.c')
-rw-r--r--uclient-http.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/uclient-http.c b/uclient-http.c
index 2005f0c..4419944 100644
--- a/uclient-http.c
+++ b/uclient-http.c
@@ -496,6 +496,8 @@ uclient_http_send_headers(struct uclient_http *uh)
uclient_http_add_auth_header(uh);
ustream_printf(uh->us, "\r\n");
+
+ uh->state = HTTP_STATE_HEADERS_SENT;
}
static void uclient_http_headers_complete(struct uclient_http *uh)