diff options
-rwxr-xr-x | t/t0105-rack-input-limit-bigger.sh | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/t/t0105-rack-input-limit-bigger.sh b/t/t0105-rack-input-limit-bigger.sh index 1ae0191..ee03d44 100755 --- a/t/t0105-rack-input-limit-bigger.sh +++ b/t/t0105-rack-input-limit-bigger.sh @@ -25,7 +25,11 @@ t_begin "stops a regular request" && { rm -f $tmp dbgcat curl_err dbgcat curl_out - grep 413 $curl_err + if ! grep 413 $curl_err + then + # send error as documented in curl(1) manpage + grep -F '(55)' $curl_err + fi test -e $ok } @@ -36,7 +40,11 @@ t_begin "stops a large chunked request" && { http://$listen/ > $curl_out 2> $curl_err || > $ok dbgcat curl_err dbgcat curl_out - grep 413 $curl_err + if ! grep 413 $curl_err + then + # send error as documented in curl(1) manpage + grep -F '(55)' $curl_err + fi test -e $ok } |