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 2005f0cd0cf5ba9e6c58ab3ef800daccb1cbf26e..44199449d98e69cc7f0f9038b4abd4cd50063c81 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)