I've run into a problem with the browser installed on recent Samsung televisions where HTTP headers that are entirely lower case are not recognized, preventing the video control from working correctly.
This PR adds a new method HeaderName::from_static_preserve_case that creates a header name with the same case as the string passed to it, e.g.
HeaderName::from_static_preserve_case("Content-Range") will produce a header named Content-Range instead of content-range.
I've run into a problem with the browser installed on recent Samsung televisions where HTTP headers that are entirely lower case are not recognized, preventing the video control from working correctly.
This PR adds a new method
HeaderName::from_static_preserve_case
that creates a header name with the same case as the string passed to it, e.g.HeaderName::from_static_preserve_case("Content-Range")
will produce a header namedContent-Range
instead ofcontent-range
.