diff options
author | Werner Koch <[email protected]> | 2023-10-02 10:53:41 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2023-10-02 11:05:49 +0000 |
commit | 53bdb7440cbe18f73548169528167190d70998ed (patch) | |
tree | d945ed7ba3bad4d72f2140654dc89210e0ea3792 /dirmngr/t-http.c | |
parent | common: Add new function b64decode. (diff) | |
download | gnupg-53bdb7440cbe18f73548169528167190d70998ed.tar.gz gnupg-53bdb7440cbe18f73548169528167190d70998ed.zip |
dirmngr: Extended the http_get_header function.
* dirmngr/http.c (send_request): Add arg 'skip'. Adjust all callers.
--
GnuPG-bug-id: 6719
Diffstat (limited to '')
-rw-r--r-- | dirmngr/t-http.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/dirmngr/t-http.c b/dirmngr/t-http.c index f9c59783f..3cc4be23a 100644 --- a/dirmngr/t-http.c +++ b/dirmngr/t-http.c @@ -463,7 +463,7 @@ main (int argc, char **argv) log_fatal ("http_get_header_names failed: %s\n", gpg_strerror (gpg_error_from_syserror ())); for (i = 0; names[i]; i++) - printf ("HDR: %s: %s\n", names[i], http_get_header (hd, names[i])); + printf ("HDR: %s: %s\n", names[i], http_get_header (hd, names[i], 0)); xfree (names); } fflush (stdout); @@ -489,7 +489,7 @@ main (int argc, char **argv) case 301: case 302: case 307: - log_info ("Redirected to: %s\n", http_get_header (hd, "Location")); + log_info ("Redirected to: %s\n", http_get_header (hd, "Location", 0)); break; } http_close (hd, 0); |