summaryrefslogtreecommitdiff
path: root/uclient-http.c
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2015-04-14 23:04:32 +0200
committerFelix Fietkau <nbd@openwrt.org>2015-04-14 23:04:32 +0200
commit81fdb8fdf1470e1c7bf3124ff20d17feaeb519ee (patch)
treecc9d981f1006c2b34f4542c79ad18eaaa6e665c9 /uclient-http.c
parentd2d1a9c477abe660e01943b3fee069b28b6610e0 (diff)
downloaduclient-81fdb8fdf1470e1c7bf3124ff20d17feaeb519ee.tar.gz
uclient-http: end custom header lines with CRLF
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Diffstat (limited to 'uclient-http.c')
-rw-r--r--uclient-http.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/uclient-http.c b/uclient-http.c
index 7e930d7..d96094d 100644
--- a/uclient-http.c
+++ b/uclient-http.c
@@ -547,7 +547,7 @@ uclient_http_send_headers(struct uclient_http *uh)
url->location, url->host);
blobmsg_for_each_attr(cur, uh->headers.head, rem)
- ustream_printf(uh->us, "%s: %s\n", blobmsg_name(cur), (char *) blobmsg_data(cur));
+ ustream_printf(uh->us, "%s: %s\r\n", blobmsg_name(cur), (char *) blobmsg_data(cur));
if (uh->req_type == REQ_POST || uh->req_type == REQ_PUT)
ustream_printf(uh->us, "Transfer-Encoding: chunked\r\n");