Also support the --show-body/-B flag when --expect is used

This commit is contained in:
Tobias Wolf 2019-02-12 13:01:23 +01:00
parent 49a0583bff
commit f7f0f7d467

View file

@ -1155,6 +1155,8 @@ check_http (void)
xasprintf (&msg,
_("Invalid HTTP response received from host on port %d: %s\n"),
server_port, status_line);
if (show_body)
xasprintf (&msg, _("%s\n%s"), msg, page);
die (STATE_CRITICAL, "HTTP CRITICAL - %s", msg);
}