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