Skip to content

Commit

Permalink
DMC-1376: Also account for the "TransferHeaderAuthorization" header i…
Browse files Browse the repository at this point in the history
…n the bearer token processing
  • Loading branch information
mpatrascoiu committed Mar 22, 2024
1 parent a0a540e commit 6a4fa41
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/curl/StandaloneCurlRequest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ static std::string filterAuthorizationHeader(const std::string& line) {
bool formatted = false;

if (getenv("DAVIX_FORMAT_BEARER_TOKEN") != NULL) {
std::string content = line.substr(15);
std::string content = line.substr(pos + 15);

// Print "Authorization: Bearer abcdefg...tuvwxyz"
if ((content.find("Bearer ") == 0) && (content.size() > 100)) {
Expand Down

0 comments on commit 6a4fa41

Please sign in to comment.