From 760cd6fe53316248039395257b35d77f413c1cbb Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Sat, 29 Mar 2014 20:17:57 +0100 Subject: [PATCH] avoid sending duplicate headers Signed-off-by: Felix Fietkau --- uclient-http.c | 2 ++ 1 file changed, 2 insertions(+) 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) -- 2.30.2