Tools: setup-unit: Pass --fail-with-body to curl(1)

Suggested-by: Liam Crilly <liam@nginx.com>
Reviewed-by: Andrew Clayton <a.clayton@nginx.com>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
This commit is contained in:
Alejandro Colomar 2024-02-09 14:01:56 +01:00
parent d6ed000316
commit e9a0c49dbc
No known key found for this signature in database
GPG key ID: 9E8C1AFBBEFFDB32

View file

@ -510,7 +510,7 @@ unit_ctl_http()
fi;
local req_path="$2";
curl $curl_options -X $method -d@- \
curl --fail-with-body $curl_options -X $method -d@- \
$(echo "$sock" | unit_sock_filter -c)${req_path};
}