CrowdHailer / raxx

Interface for HTTP webservers, frameworks and clients
https://hexdocs.pm/raxx
Apache License 2.0
401 stars 29 forks source link

connection header with capitalized values #120

Closed CrowdHailer closed 5 years ago

CrowdHailer commented 6 years ago

I came across a server today that sends connection: Close in the response. I think this is in violation on the spec, however it should probably be accomodated

My reading of the spec suggests this is an error. The values of connection should be close or keep-alive, i.e. lowercase https://tools.ietf.org/html/rfc7230#section-6.1

The parser needs to be updated to handle connection values in a case insensitive manner. https://github.com/CrowdHailer/raxx/blob/master/lib/raxx/http1.ex#L597-L605

CrowdHailer commented 5 years ago

Fixed in 0.15.10