You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by ac...@apache.org on 2021/05/16 14:32:54 UTC

[incubator-nuttx-apps] 01/04: webclient: Add a few ninfo in header parsing

This is an automated email from the ASF dual-hosted git repository.

acassis pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx-apps.git

commit f17af21f9c36a56e79ca26028a2857bea2578f73
Author: YAMAMOTO Takashi <ya...@midokura.com>
AuthorDate: Fri May 14 12:19:24 2021 +0900

    webclient: Add a few ninfo in header parsing
---
 netutils/webclient/webclient.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/netutils/webclient/webclient.c b/netutils/webclient/webclient.c
index e8c50d7..d48196d 100644
--- a/netutils/webclient/webclient.c
+++ b/netutils/webclient/webclient.c
@@ -406,6 +406,7 @@ static inline int wget_parsestatus(struct webclient_context *ctx,
                 }
 
               ctx->http_status = http_status;
+              ninfo("Got HTTP status %lu\n", http_status);
               if (ctx->http_reason != NULL)
                 {
                   strncpy(ctx->http_reason,
@@ -525,6 +526,7 @@ static inline int wget_parseheaders(struct wget_s *ws)
 
           if (ndx > 0) /* Should always be true */
             {
+              ninfo("Got HTTP header line: %.*s\n", ndx - 1, &ws->line[0]);
               if (ws->line[0] == ISO_CR)
                 {
                   /* This was the last header line (i.e., and empty "\r\n"),