From e9a0c49dbca628d8bfa6dbc8819846881b16b8b0 Mon Sep 17 00:00:00 2001 From: Alejandro Colomar Date: Fri, 9 Feb 2024 14:01:56 +0100 Subject: Tools: setup-unit: Pass --fail-with-body to curl(1) Suggested-by: Liam Crilly Reviewed-by: Andrew Clayton Signed-off-by: Alejandro Colomar --- tools/setup-unit | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/setup-unit b/tools/setup-unit index 8466e882..48e5c998 100755 --- a/tools/setup-unit +++ b/tools/setup-unit @@ -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}; } -- cgit