summaryrefslogtreecommitdiffhomepage
path: root/tools/setup-unit
diff options
context:
space:
mode:
authorAlejandro Colomar <alx@kernel.org>2024-02-09 14:01:56 +0100
committerAlejandro Colomar <alx@kernel.org>2024-02-20 16:04:24 +0100
commite9a0c49dbca628d8bfa6dbc8819846881b16b8b0 (patch)
treea5ab5ada5ef7fdeeb244ff25ebef40707e0f8d93 /tools/setup-unit
parentd6ed000316b4226ad73333ba294ac63096665a02 (diff)
downloadunit-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/setup-unit')
-rwxr-xr-xtools/setup-unit2
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};
}