Skip to content

Commit

Permalink
X-Delete-After header working
Browse files Browse the repository at this point in the history
  • Loading branch information
cail committed Jul 11, 2012
1 parent 28369a7 commit f4ed10e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions upcs
Expand Up @@ -188,9 +188,9 @@ function put_object {
options="-s" options="-s"
fi fi


expire_opt="" expire_opt="xx:"
if [[ -n ${expire} ]];then if [[ -n ${expire} ]];then
expire_opt="-H \"X-Delete-After: ${expire}\"" expire_opt="X-Delete-After: ${expire}"
fi fi


if [[ ${container} == */* ]];then if [[ ${container} == */* ]];then
Expand All @@ -199,8 +199,8 @@ function put_object {
fi fi


[[ $QUIET != "true" ]] && echo "Uploading ${file}" [[ $QUIET != "true" ]] && echo "Uploading ${file}"
[[ $QUIET != "true" ]] && echo curl ${options} -k -o/dev/null -f -X PUT -T ${file} -H "ETag: ${etag}" ${expire_opt} -H "Content-type: ${ctype}" -H "X-Auth-Token: ${StorageToken}" ${StorageUrl}/${container}/${object} [[ $QUIET != "true" ]] && echo curl ${options} -k -o/dev/null -f -X PUT -T ${file} -H "ETag: ${etag}" -H ${expire_opt} -H "Content-type: ${ctype}" -H "X-Auth-Token: ${StorageToken}" ${StorageUrl}/${container}/${object}
curl ${options} -k -o/dev/null -f -X PUT -T ${file} -H "ETag: ${etag}" ${expire_opt} -H "Content-type: ${ctype}" -H "X-Auth-Token: ${StorageToken}" ${StorageUrl}/${container}/${object} curl ${options} -k -o/dev/null -f -X PUT -T ${file} -H "ETag: ${etag}" -H ${expire_opt} -H "Content-type: ${ctype}" -H "X-Auth-Token: ${StorageToken}" ${StorageUrl}/${container}/${object}
[[ $QUIET != "true" ]] && echo [[ $QUIET != "true" ]] && echo


PUBLIC_CNAME=$(container_cname ${container}) PUBLIC_CNAME=$(container_cname ${container})
Expand Down

0 comments on commit f4ed10e

Please sign in to comment.