mirror of
https://github.com/lloeki/nanoserve.git
synced 2025-12-06 03:04:39 +01:00
Normalize header keys to lowercase
This commit is contained in:
parent
5c1717d8ee
commit
f3aebdcf0f
1 changed files with 1 additions and 1 deletions
|
|
@ -144,7 +144,7 @@ module NanoServe
|
||||||
raise RequestError, "cannot parse header: '#{str}'"
|
raise RequestError, "cannot parse header: '#{str}'"
|
||||||
end
|
end
|
||||||
|
|
||||||
@headers[m[:header]] = m[:value]
|
@headers[m[:header].downcase] = m[:value]
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue