summaryrefslogtreecommitdiff
path: root/debuginfod/debuginfod-find.c
diff options
context:
space:
mode:
authorNoah Sanci <nsanci@redhat.com>2022-06-15 10:07:29 -0400
committerFrank Ch. Eigler <fche@redhat.com>2022-09-06 11:32:13 -0400
commitbbc2ca6d553f0ce3e670303ac9a3c764cf10d779 (patch)
treeb08f81afb310c8c46cffdbeeb8e7881f7401573f /debuginfod/debuginfod-find.c
parenta176b6e30aa8983c95b81f18c34a2b5c6a0c907b (diff)
downloadelfutils-bbc2ca6d553f0ce3e670303ac9a3c764cf10d779.tar.gz
PR28284 - Debuginfod header functionality implemented
Debuginfod and debuginfod clients are now equipped to send and receive http headers prefixed with X-DEBUGINFOD and print them in verbose mode for more context Signed-off-by: Noah Sanci <nsanci@redhat.com>
Diffstat (limited to 'debuginfod/debuginfod-find.c')
-rw-r--r--debuginfod/debuginfod-find.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/debuginfod/debuginfod-find.c b/debuginfod/debuginfod-find.c
index f60b5463..fb1f294c 100644
--- a/debuginfod/debuginfod-find.c
+++ b/debuginfod/debuginfod-find.c
@@ -215,6 +215,9 @@ main(int argc, char** argv)
if (verbose)
{
+ const char* headers = debuginfod_get_headers(client);
+ if (headers)
+ fprintf(stderr, "Headers:\n%s", headers);
const char* url = debuginfod_get_url (client);
if (url != NULL)
fprintf(stderr, "Downloaded from %s\n", url);