From 7be9c083aac9d7058eb02a2951ffa177dde4448f Mon Sep 17 00:00:00 2001 From: Dave Protasowski Date: Thu, 1 Dec 2016 14:49:23 -0500 Subject: [PATCH] prevent curl from including an 'Expect: 100' header which isn't supported by GCP load balancers --- jobs/deploy-notifications/templates/deploy.sh.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jobs/deploy-notifications/templates/deploy.sh.erb b/jobs/deploy-notifications/templates/deploy.sh.erb index 91628a85..66c86c6e 100644 --- a/jobs/deploy-notifications/templates/deploy.sh.erb +++ b/jobs/deploy-notifications/templates/deploy.sh.erb @@ -193,7 +193,7 @@ EOF temp_client_token=$(curl $SCHEME://$TEMP_CLIENT:$TEMP_PASS@uaa.$DOMAIN/oauth/token -d "grant_type=client_credentials" -kv | jq -r '.access_token') - status=$(curl -i -k -v -so ./curl.log -w '%{response_code}' -X PUT -H "Authorization: Bearer $temp_client_token" $SCHEME://$APP_NAME.$DOMAIN/default_template -d "$DEFAULT_TEMPLATE") + status=$(curl -i -k -v -so ./curl.log -w '%{response_code}' -X PUT -H "Expect:" -H "Authorization: Bearer $temp_client_token" $SCHEME://$APP_NAME.$DOMAIN/default_template -d "$DEFAULT_TEMPLATE") curl -k -H "Authorization: Bearer $admin_token" -X DELETE $SCHEME://uaa.$DOMAIN/oauth/clients/$TEMP_CLIENT