]> git.ipfire.org Git - thirdparty/elfutils.git/commit
debuginfod: Remove checking for unsafe headers
authorNoah Sanci <nsanci@redhat.com>
Fri, 17 Sep 2021 14:45:39 +0000 (10:45 -0400)
committerNoah Sanci <nsanci@redhat.com>
Fri, 17 Sep 2021 17:36:36 +0000 (13:36 -0400)
commit28db5f16c44fa7bbd24b221b65aa4d133753355c
tree5893fa28e0c5f7e6bbb8e6c255e1493684fc5ace
parent8626a4786c1e79e1b4891ea31966bc124e029378
debuginfod: Remove checking for unsafe headers

Some http response header checks were removed such as checking for
Connection and Cache-Control. These headers are not guarenteed to be
received and depend on proxy and libmicrohttpd versions. Checking for
the existance of Content-Length and DEBUGINFOD-* headers is sufficient
since Content-Length is added upon creation of an MHD_Response object
and DEBUGINFOD-* are added manually.
(source on Content-Length being added:
https://www.gnu.org/software/libmicrohttpd/manual/libmicrohttpd.html#
    microhttpd_002dresponse-headers )

Signed-off-by: Noah Sanci <nsanci@redhat.com>
tests/ChangeLog
tests/run-debuginfod-response-headers.sh