avoid sending duplicate headers
authorFelix Fietkau <nbd@openwrt.org>
Sat, 29 Mar 2014 19:17:57 +0000 (20:17 +0100)
committerFelix Fietkau <nbd@openwrt.org>
Sat, 29 Mar 2014 19:17:57 +0000 (20:17 +0100)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
uclient-http.c

index 2005f0c..4419944 100644 (file)
@@ -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)