-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Firefox Support - Headers.prototype.getAll method has been removed #177
Comments
Solution: familysearch-javascript-sdk/src/plumbing.js Line 317 in 6d7b1b0
|
Wait a minute... Are you saying that Firefox doesn't maintain full backwards compatibility forever? Seriously, getting a little annoyed here. Don't you think they should provide some parameter we can pass to revert to the old FF 51 behavior? 😉 Just teasing, @dovy. |
I agree and i think it's totally unacceptable. Remember, they're not the best nowadays. I haven't used them for 3 years. ;) |
But this is more of a standard change and FireFox is just being more proactive than others. |
😃 Yes. Of course. |
@dovy I'm curious what your usecase is for using the I believe that an easier fix would be to deprecate and ignore the |
I wasn't using it. It's in the piping and firefox was shooting errors when checking for attaching a source to a person. It checks the header to ensure that it's been given a "created" header, than then move forward. This was failing in firefox and causing my app to just freeze with a JS error. |
I was wrong about the
I think we can just update that one internal usage and call it good. |
The Headers.prototype.getAll method has been removed as per the latest Fetch spec. Instead, the Headers.prototype.get method now returns the all values of a given HTTP header in a comma-separated string instead of just the first value.
https://www.fxsitecompat.com/en-CA/docs/2016/headers-getall-has-been-removed-in-favour-of-get-now-returning-all-values/
Need to use Headers.get() instead.
The text was updated successfully, but these errors were encountered: