mirror of
git://git.gnupg.org/gnupg.git
synced 2024-12-22 10:19:57 +01:00
dirmngr: Log http response in debug mode.
* dirmngr/http.c (parse_response): Log http response in debug mode. Signed-off-by: Justus Winter <justus@g10code.com>
This commit is contained in:
parent
1ba220e681
commit
e7eabe66b6
@ -2344,7 +2344,7 @@ parse_response (http_t hd)
|
||||
if (!len)
|
||||
return GPG_ERR_EOF;
|
||||
|
||||
if ((hd->flags & HTTP_FLAG_LOG_RESP))
|
||||
if (opt_debug || (hd->flags & HTTP_FLAG_LOG_RESP))
|
||||
log_debug_with_string (line, "http.c:response:\n");
|
||||
}
|
||||
while (!*line);
|
||||
@ -2389,7 +2389,7 @@ parse_response (http_t hd)
|
||||
/* Trim line endings of empty lines. */
|
||||
if ((*line == '\r' && line[1] == '\n') || *line == '\n')
|
||||
*line = 0;
|
||||
if ((hd->flags & HTTP_FLAG_LOG_RESP))
|
||||
if (opt_debug || (hd->flags & HTTP_FLAG_LOG_RESP))
|
||||
log_info ("http.c:RESP: '%.*s'\n",
|
||||
(int)strlen(line)-(*line&&line[1]?2:0),line);
|
||||
if (*line)
|
||||
|
Loading…
x
Reference in New Issue
Block a user