Re: [whatwg/xhr] Web compat implications of making getAllResponseHeaders lowercase (#146)

So.. for example: In my PHP-code i use the following code (serverside):

`header('Foo: Bar')`

which will make my response look like this:

![image](https://user-images.githubusercontent.com/17725109/28829027-d6574a1e-76d2-11e7-9139-be7b93c8dd82.png)

and after making a XHR-request, the output of the xhr.getAllResponseHeaders() looks like this:

`foo: Bar..`

you're saying that when I'm matching on the header field name 'Foo' (_as I provided myself in my code_) it's a bug in the application when i'm doing a case sensitive comparison and not able to find it?

I think it's a bug in the getAllResponseHeaders-function by returning modified values!



-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/xhr/issues/146#issuecomment-319379365

Received on Tuesday, 1 August 2017 14:04:39 UTC