webclient: Add a few ninfo in header parsing

This commit is contained in:
YAMAMOTO Takashi 2021-05-14 12:19:24 +09:00 committed by Alan Carvalho de Assis
parent d74ac654a9
commit f17af21f9c

View File

@ -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"),