Closed Vinnl closed 4 years ago
Thanks! I don't have time to read into this right now, but looks like a bug to me at first glance. I'll check this out in depth later!
Turns out that according to rfc8288#section-2.1.2 extension rels should be lowercase, they don't have to be – they only have to be compared as lowercase strings. So there's definitely a bug here.
Wow, that was quick - and even resolved my other issue as well. Thanks @jhermsmeier!
The
rel
can be a URI:https://httpwg.org/specs/rfc8288.html#header-type
Looking at that RFC3986, while the scheme and the host are case insensitive, the other parts can be case sensitive, depending on the scheme used:
https://tools.ietf.org/html/rfc3986#section-6.2.2.1
However, when encountering a
rel
with non-lowercase characters in the other components, http-link-header converts them to lowercase:https://codesandbox.io/s/charming-tdd-syip6
(Apologies if I misinterpreted any of the above RFCs.)