Skip to content

Commit 4f43983

Browse files
authored
fix: allow unstrict case for response header getter (#12)
Closes: #11
1 parent 31afb9b commit 4f43983

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/response.ts

+1
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,7 @@ export class ApiResponse extends Macroable {
154154
* Read value for a given response header
155155
*/
156156
header(key: string): string | undefined {
157+
key = key.toLowerCase()
157158
return this.response.headers[key]
158159
}
159160

0 commit comments

Comments
 (0)