Skip to content

Commit

Permalink
Renamed auth headers to comply with the HTTP TPC protocol
Browse files Browse the repository at this point in the history
  • Loading branch information
glpatcern committed Dec 9, 2021
1 parent 5f13669 commit d10f74a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/backend/BackendRequest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ void BackendRequest::configureRevaParams()
if (_request_type != "COPY") {
std::string token = _params.getRevaToken(uri);
if (token != ""){
_headers_field.emplace_back("X-Access-Token", token);
_headers_field.emplace_back("Authorization", "Bearer " + token);
}
}
else {
Expand Down Expand Up @@ -180,8 +180,8 @@ void BackendRequest::configureRevaParams()
}
}

_headers_field.emplace_back("X-Access-Token", active_token);
_headers_field.emplace_back("TransferHeaderX-Access-Token", passive_token);
_headers_field.emplace_back("Authorization", "Bearer " + active_token);
_headers_field.emplace_back("TransferHeaderAuthorization", passive_token);

}
}
Expand Down

0 comments on commit d10f74a

Please sign in to comment.