From 5945dc06d9f103fd8bab0c90cb82ffecdb13739e Mon Sep 17 00:00:00 2001 From: Kevin van Zonneveld Date: Fri, 29 Mar 2013 22:57:48 +0100 Subject: [PATCH] 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 --- scripts/demo-alphabet.sh | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/scripts/demo-alphabet.sh b/scripts/demo-alphabet.sh index cbbdbd8..4deacb8 100755 --- a/scripts/demo-alphabet.sh +++ b/scripts/demo-alphabet.sh @@ -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