maildev@lists.thunderbird.net

Thunderbird email developers

View all threads

fetch API Headers.get() is broken, does not return ANY WWW-Authenticate header, if more than one is present

JB
John Bieling
Thu, Sep 13, 2018 9:14 AM

Hi,

I am on TB60, so Headers.getAll() is no longer avail (which returned an
array of multiple headers of the same type)
Now I have to use Headers.get() and split by colon, to get the multiple
headers.

This alone is bad, because some headers contain colons themself which
makes parsing them very difficult.

But for the WWW-Authenticate header it is now really broken: If the
server sends two or more of them (which is allowed),
Headers.get("WWW-Authenticate") returns nothing at all. Spelling is not
the cause here, using Headers.entries() also does not contain them.

Can someone confirm this?
Where is the right place to file a bug?
Where is the right place to ask to bring back Headers.getAll()?

Thanks,
John

Hi, I am on TB60, so Headers.getAll() is no longer avail (which returned an array of multiple headers of the same type) Now I have to use Headers.get() and split by colon, to get the multiple headers. This alone is bad, because some headers contain colons themself which makes parsing them very difficult. But for the WWW-Authenticate header it is now really broken: If the server sends two or more of them (which is allowed), Headers.get("WWW-Authenticate") returns nothing at all. Spelling is not the cause here, using Headers.entries() also does not contain them. Can someone confirm this? Where is the right place to file a bug? Where is the right place to ask to bring back Headers.getAll()? Thanks, John
MM
Magnus Melin
Thu, Sep 13, 2018 12:58 PM

Headers.getAll() has been removed from the spec -
https://developer.mozilla.org/en-US/docs/Web/API/Headers#Obsolete_methods

But no, this isn't the list to discuss any of this.

 -Magnus

On 13-09-2018 12:14, John Bieling wrote:

Hi,

I am on TB60, so Headers.getAll() is no longer avail (which returned
an array of multiple headers of the same type)
Now I have to use Headers.get() and split by colon, to get the
multiple headers.

This alone is bad, because some headers contain colons themself which
makes parsing them very difficult.

But for the WWW-Authenticate header it is now really broken: If the
server sends two or more of them (which is allowed),
Headers.get("WWW-Authenticate") returns nothing at all. Spelling is
not the cause here, using Headers.entries() also does not contain them.

Can someone confirm this?
Where is the right place to file a bug?
Where is the right place to ask to bring back Headers.getAll()?

Thanks,
John


Maildev mailing list
Maildev@lists.thunderbird.net
http://lists.thunderbird.net/mailman/listinfo/maildev_lists.thunderbird.net

Headers.getAll() has been removed from the spec - https://developer.mozilla.org/en-US/docs/Web/API/Headers#Obsolete_methods But no, this isn't the list to discuss any of this.  -Magnus On 13-09-2018 12:14, John Bieling wrote: > Hi, > > I am on TB60, so Headers.getAll() is no longer avail (which returned > an array of multiple headers of the same type) > Now I have to use Headers.get() and split by colon, to get the > multiple headers. > > This alone is bad, because some headers contain colons themself which > makes parsing them very difficult. > > But for the WWW-Authenticate header it is now really broken: If the > server sends two or more of them (which is allowed), > Headers.get("WWW-Authenticate") returns nothing at all. Spelling is > not the cause here, using Headers.entries() also does not contain them. > > Can someone confirm this? > Where is the right place to file a bug? > Where is the right place to ask to bring back Headers.getAll()? > > Thanks, > John > > _______________________________________________ > Maildev mailing list > Maildev@lists.thunderbird.net > http://lists.thunderbird.net/mailman/listinfo/maildev_lists.thunderbird.net >
JB
John Bieling
Thu, Sep 13, 2018 3:00 PM

Maybe some of you want to CC on the corresponding bug:
https://bugzilla.mozilla.org/show_bug.cgi?id=1491010

If this gets fixed in the core, will that land in TB60 ESR?

Thanks for your help,
John

Am 13.09.2018 um 14:58 schrieb Magnus Melin:

Headers.getAll() has been removed from the spec -
https://developer.mozilla.org/en-US/docs/Web/API/Headers#Obsolete_methods

But no, this isn't the list to discuss any of this.

 -Magnus

On 13-09-2018 12:14, John Bieling wrote:

Hi,

I am on TB60, so Headers.getAll() is no longer avail (which returned
an array of multiple headers of the same type)
Now I have to use Headers.get() and split by colon, to get the
multiple headers.

This alone is bad, because some headers contain colons themself which
makes parsing them very difficult.

But for the WWW-Authenticate header it is now really broken: If the
server sends two or more of them (which is allowed),
Headers.get("WWW-Authenticate") returns nothing at all. Spelling is
not the cause here, using Headers.entries() also does not contain them.

Can someone confirm this?
Where is the right place to file a bug?
Where is the right place to ask to bring back Headers.getAll()?

Thanks,
John


Maildev mailing list
Maildev@lists.thunderbird.net
http://lists.thunderbird.net/mailman/listinfo/maildev_lists.thunderbird.net

Maybe some of you want to CC on the corresponding bug: https://bugzilla.mozilla.org/show_bug.cgi?id=1491010 If this gets fixed in the core, will that land in TB60 ESR? Thanks for your help, John Am 13.09.2018 um 14:58 schrieb Magnus Melin: > Headers.getAll() has been removed from the spec - > https://developer.mozilla.org/en-US/docs/Web/API/Headers#Obsolete_methods > > But no, this isn't the list to discuss any of this. > >  -Magnus > > On 13-09-2018 12:14, John Bieling wrote: >> Hi, >> >> I am on TB60, so Headers.getAll() is no longer avail (which returned >> an array of multiple headers of the same type) >> Now I have to use Headers.get() and split by colon, to get the >> multiple headers. >> >> This alone is bad, because some headers contain colons themself which >> makes parsing them very difficult. >> >> But for the WWW-Authenticate header it is now really broken: If the >> server sends two or more of them (which is allowed), >> Headers.get("WWW-Authenticate") returns nothing at all. Spelling is >> not the cause here, using Headers.entries() also does not contain them. >> >> Can someone confirm this? >> Where is the right place to file a bug? >> Where is the right place to ask to bring back Headers.getAll()? >> >> Thanks, >> John >> >> _______________________________________________ >> Maildev mailing list >> Maildev@lists.thunderbird.net >> http://lists.thunderbird.net/mailman/listinfo/maildev_lists.thunderbird.net >> > > _______________________________________________ > Maildev mailing list > Maildev@lists.thunderbird.net > http://lists.thunderbird.net/mailman/listinfo/maildev_lists.thunderbird.net >