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:
@@ -510,7 +510,7 @@ unit_ctl_http()
|
|||||||
fi;
|
fi;
|
||||||
local req_path="$2";
|
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};
|
$(echo "$sock" | unit_sock_filter -c)${req_path};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user