mswjs / interceptors

Low-level network interception library.
https://npm.im/@mswjs/interceptors
MIT License
570 stars 128 forks source link

fix(fetch): rebase relative redirect URL against `request.url` #628

Closed mikicho closed 2 months ago

mikicho commented 2 months ago

Should we add a comment to explain why we use request.url as a base?

Uzlopak commented 2 months ago

You mean like this?

https://github.com/nodejs/undici/blob/a163e7f7f80d42522f2b0c602777b45c45560d13/lib/core/util.js#L223

mikicho commented 2 months ago

Thanks! Yes. Wdyt?

Uzlopak commented 2 months ago

Yes, please

kettanaito commented 2 months ago

Released: v0.35.1 🎉

This has been released in v0.35.1!

Make sure to always update to the latest version (npm i @mswjs/interceptors@latest) to get the newest features and bug fixes.


Predictable release automation by @ossjs/release.