Skip to content

Commit

Permalink
fix(headers): using has() to check if a key exists does not parse t…
Browse files Browse the repository at this point in the history
…he header key correctly
  • Loading branch information
Michael committed Nov 28, 2022
1 parent 4c3e51c commit b31f114
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/core/headers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ export class UrbexHeaders {
* Whether the headers object contains a given header
*/
public has(key: string): boolean {
return hasOwnProperty(this.$headers, key);
return hasOwnProperty(this.$headers, parseHeaderKey(key));
}

/**
Expand Down

0 comments on commit b31f114

Please sign in to comment.