diff options
author | Felix Fietkau <nbd@openwrt.org> | 2014-05-06 14:46:27 +0200 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2014-05-06 14:46:43 +0200 |
commit | cba6b0a007362ab5743044abea88186d2a5abd77 (patch) | |
tree | dc111b255f461e3fdede86c759ada8974cd59e80 /uclient-fetch.c | |
parent | 131a36634ca800b377a212c5e14527d0ee0f7222 (diff) | |
download | uclient-cba6b0a007362ab5743044abea88186d2a5abd77.tar.gz |
fetch: remove http header output
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Diffstat (limited to 'uclient-fetch.c')
-rw-r--r-- | uclient-fetch.c | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/uclient-fetch.c b/uclient-fetch.c index 9040f84..7aa60ea 100644 --- a/uclient-fetch.c +++ b/uclient-fetch.c @@ -98,9 +98,6 @@ static void header_done_cb(struct uclient *cl) { static int retries; - struct blob_attr *cur; - int rem; - if (retries < 10 && uclient_http_redirect(cl)) { if (!quiet) fprintf(stderr, "Redirected to %s on %s\n", cl->url->location, cl->url->host); @@ -110,13 +107,6 @@ static void header_done_cb(struct uclient *cl) } retries = 0; - if (!quiet) { - fprintf(stderr, "Headers (%d): \n", cl->status_code); - blobmsg_for_each_attr(cur, cl->meta, rem) { - fprintf(stderr, "%s=%s\n", blobmsg_name(cur), (char *) blobmsg_data(cur)); - } - } - switch (cl->status_code) { case 204: case 200: |