upload as binary

This commit is contained in:
Girish Ramakrishnan
2016-04-02 17:58:10 -07:00
parent a21a913f34
commit 1b539b8d22

View File

@@ -57,7 +57,7 @@ for try in `seq 1 5`; do
headers=("-H" "Content-Type:")
if cat "${app_data_snapshot}/config.json" \
| curl --fail -X PUT ${headers[@]} --data @- "${backup_config_url}" 2>"${error_log}"; then
| curl --fail -X PUT ${headers[@]} --data-binary @- "${backup_config_url}" 2>"${error_log}"; then
break
fi
cat "${error_log}" && rm "${error_log}"