Skip to content

Commit

Permalink
prevent curl from including an 'Expect: 100' header which isn't suppo…
Browse files Browse the repository at this point in the history
…rted by GCP load balancers
  • Loading branch information
dprotaso committed Dec 1, 2016
1 parent bdef916 commit 7be9c08
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jobs/deploy-notifications/templates/deploy.sh.erb
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 7be9c08

Please sign in to comment.