@@ -66,7 +66,8 @@ assertHttpRequestEquals() {
6666
6767 if [ " ${index_page} " == " 1" ]; then
6868 # Follow 302 redirect if testing static hosting
69- extra_arg=" -L -v"
69+ # Add the -v flag to the curl command below to debug why curl is failing
70+ extra_arg=" -L"
7071 else
7172 extra_arg=" "
7273 fi
@@ -118,7 +119,8 @@ set +o errexit
118119# Allow curl command to fail with a non-zero exit code for this block because
119120# we want to use it to test to see if the server is actually up.
120121for (( i= 1 ; i<= 3 ; i++ )) ; do
121- response=" $( ${curl_cmd} -v -s -o /dev/null -w ' %{http_code}' --head " ${test_server} " ) "
122+ # Add the -v flag to the curl command below to debug why curl is failing
123+ response=" $( ${curl_cmd} -s -o /dev/null -w ' %{http_code}' --head " ${test_server} " ) "
122124 if [ " ${response} " != " 000" ]; then
123125 break
124126 fi
@@ -211,7 +213,7 @@ assertHttpRequestEquals "GET" "%D1%81%D0%B8%D1%81%D1%82%D0%B5%D0%BC%D1%8B/%25bad
211213if [ " ${index_page} " == " 1" ]; then
212214assertHttpRequestEquals " GET" " /statichost/" " data/bucket-1/statichost/index.html"
213215assertHttpRequestEquals " GET" " /statichost/noindexdir/multipledir/" " data/bucket-1/statichost/noindexdir/multipledir/index.html"
214- if [ " ${append_slash} " == " 1" ]; then
216+ if [ " ${append_slash} " == " 1" ]; then
215217 assertHttpRequestEquals " GET" " /statichost" " data/bucket-1/statichost/index.html"
216218 assertHttpRequestEquals " GET" " /statichost/noindexdir/multipledir" " data/bucket-1/statichost/noindexdir/multipledir/index.html"
217219 fi
@@ -227,7 +229,7 @@ if [ "${allow_directory_list}" == "1" ]; then
227229 assertHttpRequestEquals " GET" " b" " 302"
228230 else
229231 assertHttpRequestEquals " GET" " b" " 404"
230- fi
232+ fi
231233elif [ " ${index_page} " == " 1" ]; then
232234 assertHttpRequestEquals " GET" " /" " data/bucket-1/index.html"
233235else
0 commit comments