mswjs / interceptors

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

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

Closed mikicho closed 3 weeks ago

mikicho commented 3 weeks ago

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

Uzlopak commented 3 weeks ago

You mean like this?

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

mikicho commented 3 weeks ago

Thanks! Yes. Wdyt?

Uzlopak commented 3 weeks ago

Yes, please

kettanaito commented 3 weeks 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.