From cba6b0a007362ab5743044abea88186d2a5abd77 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Tue, 6 May 2014 14:46:27 +0200 Subject: [PATCH] fetch: remove http header output Signed-off-by: Felix Fietkau --- CMakeLists.txt | 3 ++- uclient-fetch.c | 10 ---------- 2 files changed, 2 insertions(+), 11 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index f8ad551..ee7d91d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -21,6 +21,7 @@ TARGET_LINK_LIBRARIES(uclient-fetch uclient) INSTALL(FILES uclient.h uclient-utils.h DESTINATION include/libubox ) -INSTALL(TARGETS uclient +INSTALL(TARGETS uclient uclient-fetch LIBRARY DESTINATION lib + RUNTIME DESTINATION bin ) 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: -- 2.25.1