Skip to content

Commit

Permalink
fix response body and header colliding in basic auth token retrieval
Browse files Browse the repository at this point in the history
Signed-off-by: Jesse Butler <[email protected]>
  • Loading branch information
jlbutler authored and Jonathan Calmels committed Jun 7, 2023
1 parent a648e76 commit 9bc97b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/docker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ docker::_authenticate() {
;;
Basic)
# Check that we have valid credentials and save them if successful.
CURL_ERROUT=1 common::curl "${curl_opts[@]}" -G -v ${req_params[@]+"${req_params[@]}"} -- "${url}" \
CURL_ERROUT=1 common::curl "${curl_opts[@]}" -w -G -v ${req_params[@]+"${req_params[@]}"} -- "${url}" \
| awk '/Authorization: Basic/ { sub(/\r/, "", $4); print $4 }' \
| common::read -r token
;;
Expand Down

0 comments on commit 9bc97b1

Please sign in to comment.