Merge pull request #1539 from mkauschi/http-basic-auth-backport-patch

backport patch for the http basic auth bug from PR 1538
This commit is contained in:
Dirk Wetter 2020-03-18 14:51:36 +01:00 committed by GitHub
commit b2252002f4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -18481,7 +18481,7 @@ determine_service() {
ua="$UA_SNEAKY" || \
ua="$UA_STD"
if [[ -n "$BASICAUTH" ]]; then
basicauth_header="Authorization: Basic $($OPENSSL base64 <<< "$BASICAUTH" 2>/dev/null)\r\n"
basicauth_header="Authorization: Basic $(safe_echo "$BASICAUTH" | $OPENSSL base64 2>/dev/null)\r\n"
fi
GET_REQ11="GET $URL_PATH HTTP/1.1\r\nHost: $NODE\r\nUser-Agent: $ua\r\n${basicauth_header}Accept-Encoding: identity\r\nAccept: text/*\r\nConnection: Close\r\n\r\n"
# returns always 0: