]> git.ipfire.org Git - thirdparty/elfutils.git/commit
debuginfod: file:// URLs: handle curl resp. code
authorKonrad Kleine <kkleine@redhat.com>
Wed, 26 Feb 2020 15:00:43 +0000 (10:00 -0500)
committerMark Wielaard <mark@klomp.org>
Wed, 26 Feb 2020 20:10:40 +0000 (21:10 +0100)
commit4c1de9608b67f5c7e71f4a2865395703224cb1cb
tree5d65f2e84878b9b428861b10cb34a85715b4c626
parent37d56e9275fcf70c4a0cb19c0f2ac1d4032acfab
debuginfod: file:// URLs: handle curl resp. code

When file:// is used for DEBUGINFOD_URLS, then the response code for a
successful server query is 0 and not 200.

Using file:// can be helpful when you want to test your
debuginfod-client integration against a mocked file tree that mimics the
HTTP URLs from the debuginfod server. This way you don't have to run the
debuginfod server at all.

Fixes https://sourceware.org/bugzilla/show_bug.cgi?id=25600

Signed-off-by: Konrad Kleine <kkleine@redhat.com>
debuginfod/ChangeLog
debuginfod/debuginfod-client.c
tests/ChangeLog
tests/run-debuginfod-find.sh