Whitespace and small fixes

This commit is contained in:
Kevin van Zonneveld 2013-03-20 17:53:09 +01:00
parent e68f74faa0
commit d4718fc6f0
1 changed files with 4 additions and 3 deletions

View File

@ -31,7 +31,7 @@ status=$(curl -s \
--header 'Content-Length: 3' \ --header 'Content-Length: 3' \
--header 'Content-Range: bytes 0-2/26' \ --header 'Content-Range: bytes 0-2/26' \
--data 'abc' \ --data 'abc' \
${SERVICE}${location} |head -n1 |tr -d '\r') ${SERVICE}${location} |head -1 |tr -d '\r')
echo "<-- ${status}" echo "<-- ${status}"
# check that data with HEAD # check that data with HEAD
@ -57,7 +57,7 @@ status=$(curl -s \
--header 'Content-Length: 3' \ --header 'Content-Length: 3' \
--header 'Content-Range: bytes 22-25/26' \ --header 'Content-Range: bytes 22-25/26' \
--data 'xyz' \ --data 'xyz' \
${SERVICE}${location} |head -n1 |tr -d '\r') ${SERVICE}${location} |head -1 |tr -d '\r')
echo "<-- ${status}" echo "<-- ${status}"
# check that data with HEAD # check that data with HEAD
@ -69,3 +69,4 @@ echo "<-- Range: ${has_range}"
echo -ne "GET '${SERVICE}${location}' \t\t" echo -ne "GET '${SERVICE}${location}' \t\t"
has_content=$(curl -s ${SERVICE}${location}) has_content=$(curl -s ${SERVICE}${location})
echo "<-- ${has_content}" echo "<-- ${has_content}"