debuginfod: Query debuginfod servers before printing response
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 14:52:43 +0000 (10:52 -0400)
commit8626a4786c1e79e1b4891ea31966bc124e029378
tree9427d0aa919d7f7e1c1b2c5a13e0adcbf8e857be
parentff5056c7d78b925fbd49997dc88183f6c859ac7f
debuginfod: Query debuginfod servers before printing response

While checking PR27277 on some buildbots, greping would fail in
run-debuginfod-response-headers.sh. This was because querying the
debuginfod server occurs after checking if the responseh headers had
arrived, leaving the possibility to leave the querying loop before
outputting the headers which caused the grep failure. Querying now
occurs before checking if response headers have arrived, so that they
will certainly be printed and grep will find them.

Signed-off-by: Noah Sanci <nsanci@redhat.com>
debuginfod/ChangeLog
debuginfod/debuginfod-client.c