diff options
author | Alejandro Colomar <alx@kernel.org> | 2024-02-09 14:01:56 +0100 |
---|---|---|
committer | Alejandro Colomar <alx@kernel.org> | 2024-02-20 16:04:24 +0100 |
commit | e9a0c49dbca628d8bfa6dbc8819846881b16b8b0 (patch) | |
tree | a5ab5ada5ef7fdeeb244ff25ebef40707e0f8d93 /tools | |
parent | d6ed000316b4226ad73333ba294ac63096665a02 (diff) | |
download | unit-e9a0c49dbca628d8bfa6dbc8819846881b16b8b0.tar.gz unit-e9a0c49dbca628d8bfa6dbc8819846881b16b8b0.tar.bz2 |
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>
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/setup-unit | 2 |
1 files changed, 1 insertions, 1 deletions
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}; } |