The network stack sends the headers with the case it gets (Except for H2/QUIC, where headers are specced to be lower case). Code you're looking for that does this is more likely in blink.On Sun, Jun 26, 2016 at 2:50 AM, PhistucK <phis...@gmail.com> wrote:--I tried this -fetch("/foo?bar=6", {method: 'get', headers: {'X-Requested-With': 'XMLHttpRequest', 'Accept': 'application/json, text/javascript, */*; q=0.01', 'Authorization': 'd'}});Chrome converts all of the header names I specified to lower case. Firefox only converts X-Requested-With to lower case.While I know that headers should be case insensitive, I wonder why Chrome does that and Firefox does something else. This looks like an interoperation issue (a small one, but still).Who is right?☆PhistucK
You received this message because you are subscribed to the Google Groups "net-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to net-dev+u...@chromium.org.
To post to this group, send email to net...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/net-dev/CABc02_JuMBBzGad4Wp6z4SpVQHixz3cxBQ9a9L2HQF%2BajKprLA%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/net-dev/CABc02_LLU_sFmJsxeW5H-da4-UUa9ZJFfsYbR-obEkxb5MBB4Q%40mail.gmail.com.
Does Blink intentionally convert header names to lower case when using the fetch API?And if so, does that conform to the specification (Firefox only converts some)?