Skip to content

Commit

Permalink
minor improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
bung87 committed Apr 12, 2024
1 parent 07c811c commit d4937be
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1,943 deletions.
2 changes: 1 addition & 1 deletion src/scorper/http/httpcore.nim
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ func getOrDefault*(headers: HttpHeaders, key: string,
## Returns the values associated with the given ``key``. If there are no
## values associated with the key, then ``default`` is returned.
if headers.hasKey(key):
return headers[key]
return headers.getOrDefault(headers.toCaseInsensitive(key))
else:
return default

Expand Down
Loading

0 comments on commit d4937be

Please sign in to comment.