Skip to content

Commit

Permalink
fix: 🐛 Fix inversion bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Hobart2967 committed Oct 2, 2023
1 parent 92b28bf commit 322f005
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/services/request-verification.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ export class RequestVerificationService {

private getCleansedHeaders(request: RequestWithContext, incomingSignature: ParsedSignature): OutgoingHttpHeaders {
const cleansedHeaders: OutgoingHttpHeaders = Object.entries(request.headers)
.filter(([header]) => !incomingSignature.signedHeaders.includes(header.toLowerCase()))
.filter(([header]) => incomingSignature.signedHeaders.includes(header.toLowerCase()))
.reduce((prev, [header, value]) => ({
...prev,
[header.toLowerCase()]: value
Expand Down

0 comments on commit 322f005

Please sign in to comment.