Skip to content

Commit

Permalink
Remove headers
Browse files Browse the repository at this point in the history
  • Loading branch information
ml24ia committed Feb 22, 2024
1 parent b70acde commit bab6c2a
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ trait RequestHandlerS3 extends S3Client with UserRequestQueue {
.withEntity(originalRequest.entity)
.addHeader(RawHeader("User-Agent", userAgent))
.removeHeader("Authorization")
.removeHeader("x-amz-security-token")
.addHeader(RawHeader("Authorization", npaRequest.getHeaders.get("Authorization")))

fireRequestToS3(newRequest, userSTS).flatMap { response =>
Expand Down

0 comments on commit bab6c2a

Please sign in to comment.