fetch: remove http header output
authorFelix Fietkau <nbd@openwrt.org>
Tue, 6 May 2014 12:46:27 +0000 (14:46 +0200)
committerFelix Fietkau <nbd@openwrt.org>
Tue, 6 May 2014 12:46:43 +0000 (14:46 +0200)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
CMakeLists.txt
uclient-fetch.c

index f8ad551f92c77108b66c83907e5063cb426382c1..ee7d91de2266c39e4e611c209ec065f0150ad691 100644 (file)
@@ -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
 )
index 9040f84fa7588e13fe6a4d5f5bb0b04e70aab2d9..7aa60ead94d80c373d532a17593cea215189cb7e 100644 (file)
@@ -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: