From 758d347f8783cb7efcead8e43615e90e81103e4a Mon Sep 17 00:00:00 2001 From: Andrew Stanton-Nurse Date: Wed, 11 Nov 2015 22:13:35 -0800 Subject: [PATCH] upload the data as raw binary data and set content-type --- scripts/publish.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/publish.sh b/scripts/publish.sh index 34d3a6dfb..c0c88db6e 100755 --- a/scripts/publish.sh +++ b/scripts/publish.sh @@ -109,7 +109,7 @@ update_file_in_blob_storage(){ banner "Updating $file in blob storage" - statusCode=$(curl -s -w "%{http_code}" -L -H "x-ms-blob-type: BlockBlob" -H "x-ms-date: 2015-10-21" -H "x-ms-version: 2013-08-15" $update_URL --data $filecontent --request PUT ) + statusCode=$(curl -s -w "%{http_code}" -L -H "x-ms-blob-type: BlockBlob" -H "x-ms-date: 2015-10-21" -H "x-ms-version: 2013-08-15" -H "Content-Type: text/plain" $update_URL --data-binary $filecontent --request PUT ) if [ "$statusCode" -eq "201" ]; then info "successfully updated $file in blob storage."