Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

X-Delete-After header working

  • Loading branch information...
commit f4ed10e726cbb0a17c6af65b30b49b5f1a824a48 1 parent 28369a7
@cail authored
Showing with 4 additions and 4 deletions.
  1. +4 −4 upcs
View
8 upcs
@@ -188,9 +188,9 @@ function put_object {
options="-s"
fi
- expire_opt=""
+ expire_opt="xx:"
if [[ -n ${expire} ]];then
- expire_opt="-H \"X-Delete-After: ${expire}\""
+ expire_opt="X-Delete-After: ${expire}"
fi
if [[ ${container} == */* ]];then
@@ -199,8 +199,8 @@ function put_object {
fi
[[ $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}
- 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}" -H ${expire_opt} -H "Content-type: ${ctype}" -H "X-Auth-Token: ${StorageToken}" ${StorageUrl}/${container}/${object}
[[ $QUIET != "true" ]] && echo
PUBLIC_CNAME=$(container_cname ${container})
Please sign in to comment.
Something went wrong with that request. Please try again.