3 req_curl_chunked_upload_err_check
5 t_plan
6 "rack.input client_max_body_size zero"
7 t_begin
"setup and startup" && {
8 rtmpfiles curl_out curl_err
10 ed
-s $unicorn_config <<EOF
11 ,s/client_max_body_size.*/client_max_body_size 0/
14 rainbows
-D sha1-random-size.ru
-c $unicorn_config
16 empty_sha1
=da39a3ee5e6b4b0d3255bfef95601890afd80709
19 t_begin
"regular request" && {
20 curl
-vsSf -H Expect
: http
://$listen/ > $curl_out 2> $curl_err
23 test x
"$(cat $curl_out)" = x
$empty_sha1
26 t_begin
"chunked request" && {
27 curl
-vsSf -T- < /dev
/null
-H Expect
: \
28 http
://$listen/ > $curl_out 2> $curl_err
31 test x
"$(cat $curl_out)" = x
$empty_sha1
34 t_begin
"small input chunked" && {
37 curl
-vsSf -T- -H Expect
: \
38 http
://$listen/ > $curl_out 2> $curl_err ||
> $ok
45 t_begin
"small input content-length" && {
48 curl
-vsSf -T $tmp -H Expect
: \
49 http
://$listen/ > $curl_out 2> $curl_err ||
> $ok
56 t_begin
"shutdown" && {