Disable the partial get as it wasn't supported by the protocol

it used to be, but not intentionally. now results in a
CopyN of size %!s(int64=26) failed with: EOF
(it tries to copy the full range),
so disabling
This commit is contained in:
Kevin van Zonneveld 2013-03-29 22:57:48 +01:00
parent c94edc0092
commit 5945dc06d9
1 changed files with 6 additions and 4 deletions

View File

@ -40,10 +40,12 @@ echo -ne "HEAD '${SERVICE}${location}' \t\t"
has_range=$(curl -s -I -X HEAD ${SERVICE}${location} |awk -F': ' '/^Range/ {print $2}' |tr -d '\r')
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}"
# NB: getting partials is not supported and results in a
# CopyN of size %!s(int64=26) failed with: EOF
# should you try uncommenting this:
#echo -ne "GET '${SERVICE}${location}' \t\t"
#has_content=$(curl -s ${SERVICE}${location})
#echo "<-- ${has_content}"
# PUT some data