ysbaddaden / prax.cr

Rack proxy server for development (Crystal port)
Other
152 stars 18 forks source link

Look up headers case-insensitively / allow requests with lowercase headers. #67

Closed jacksonrayhamilton closed 6 years ago

jacksonrayhamilton commented 6 years ago

Requests with the user-agent "Brightcove BANSHI" from zencoder.com have headers with lowercase names, which caused the error "missing host header" when parsing the lowercase "host" header from them.

HTTP headers names are case-insensitive per the spec so this is how they should be looked-up.

ysbaddaden commented 6 years ago

Thanks!