From 9a6c8d575fc7c2e3a11c31ca6ff55b17f3ad409e Mon Sep 17 00:00:00 2001 From: Zhi Guan Date: Mon, 6 Feb 2023 13:17:44 +0800 Subject: [PATCH] Update http.c --- src/http.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/http.c b/src/http.c index 8c2b7a23..ce24c4f7 100644 --- a/src/http.c +++ b/src/http.c @@ -163,10 +163,6 @@ int http_get(const char *uri, uint8_t *buf, size_t *contentlen, size_t buflen) // process response header and retrieve left if (http_parse_response(response, len, &p, contentlen, &left) != 1) { - - response[len] = 0; - fprintf(stderr, "Response:\n%s\n", response); - error_print(); goto end; }