debuginfod: Document and sanity check debuginfod_add_http_header format.
authorMark Wielaard <mark@klomp.org>
Sun, 29 Mar 2020 22:57:30 +0000 (00:57 +0200)
committerMark Wielaard <mark@klomp.org>
Sun, 29 Mar 2020 22:57:30 +0000 (00:57 +0200)
commit7ddceee2b6b0a3fe752a2e8cc5d5cfd0f45d6897
tree80e4f772ed1c70bb1f7f493384277bdbb85e105f
parent03bb9dbb2d2ee515e3daee94ae1e2d36aeaedec7
debuginfod: Document and sanity check debuginfod_add_http_header format.

Document and sanity check the format of the header string form that can
be passed to debuginfod_add_http_header. It should contain precisely
one colon, which cannot be the first or last character. And the function
should only be used to add optional headers, not replace any existing
standard ones. Anything else isn't supported.

Signed-off-by: Mark Wielaard <mark@klomp.org>
debuginfod/ChangeLog
debuginfod/debuginfod-client.c
doc/ChangeLog
doc/debuginfod_find_debuginfo.3