diff options
author | Noah Sanci <nsanci@redhat.com> | 2022-06-15 10:07:29 -0400 |
---|---|---|
committer | Frank Ch. Eigler <fche@redhat.com> | 2022-09-06 11:32:13 -0400 |
commit | bbc2ca6d553f0ce3e670303ac9a3c764cf10d779 (patch) | |
tree | b08f81afb310c8c46cffdbeeb8e7881f7401573f /debuginfod/debuginfod-find.c | |
parent | a176b6e30aa8983c95b81f18c34a2b5c6a0c907b (diff) | |
download | elfutils-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.c | 3 |
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); |