Whitespace and small fixes
This commit is contained in:
parent
e68f74faa0
commit
d4718fc6f0
|
@ -31,7 +31,7 @@ status=$(curl -s \
|
|||
--header 'Content-Length: 3' \
|
||||
--header 'Content-Range: bytes 0-2/26' \
|
||||
--data 'abc' \
|
||||
${SERVICE}${location} |head -n1 |tr -d '\r')
|
||||
${SERVICE}${location} |head -1 |tr -d '\r')
|
||||
echo "<-- ${status}"
|
||||
|
||||
# check that data with HEAD
|
||||
|
@ -57,7 +57,7 @@ status=$(curl -s \
|
|||
--header 'Content-Length: 3' \
|
||||
--header 'Content-Range: bytes 22-25/26' \
|
||||
--data 'xyz' \
|
||||
${SERVICE}${location} |head -n1 |tr -d '\r')
|
||||
${SERVICE}${location} |head -1 |tr -d '\r')
|
||||
echo "<-- ${status}"
|
||||
|
||||
# check that data with HEAD
|
||||
|
@ -68,4 +68,5 @@ echo "<-- Range: ${has_range}"
|
|||
# get that data with GET
|
||||
echo -ne "GET '${SERVICE}${location}' \t\t"
|
||||
has_content=$(curl -s ${SERVICE}${location})
|
||||
echo "<-- ${has_content}"
|
||||
echo "<-- ${has_content}"
|
||||
|
||||
|
|
Loading…
Reference in New Issue