You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've reworded the issue to be more specific - this is not a regression per se, since relative imports have never actually worked. Previously it would blindly set the URL to the value of the location header, so it would attempt to connect to the URL /some/relative/path, for instance. That would obviously always fail, since it is not a valid URL.
I have a PR to address a number of issues related to the redirect handling, but it will be released as a major version bump when it gets merged.
https://github.com/EventSource/eventsource/pull/273/files#diff-0768641ba3de29bd47afffe8f6fe71ed13e9fe1628a550ca18896269002b510eR164 changed to use
new URL(location)
which fails when the location header is a relative path: https://nodejs.org/api/url.html#new-urlinput-baseEdit: been dealing with 1.1.1 vs. 2.0.2 questions a lot, so got mixed up when writing the title
The text was updated successfully, but these errors were encountered: