I encountered something strange. I am on TB60 trying to use the Fetch API. I create a GET or POST request without authentication and get back a 401 from the server and use
response.headers.get("WWW-Authenticate") to eval the allowed authentication methods. This works fine, if the server sends only one such header. If however he sends two or more, Headers.get("WWW-Authenticate") returns null. I only observe this for the WWW-Authenticate header, other headers - if send multiple times - will simply be returned as a list (joined by colon). Is this a bug? Am I doing something wrong? This is a example set of headers, that is not accessible: WWW-Authenticate: Negotiate WWW-Authenticate: Basic realm="Contact and Calendar data" Also: Why was Headers.getAll() dropped after Gecko 52? The digest auth header includes colons himself and if it is returned joined into a list together with some other auth method, it will be very difficult to parse that. Thanks for your help, John _______________________________________________ dev-platform mailing list dev-platform@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-platform