-
-
Notifications
You must be signed in to change notification settings - Fork 131
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
Intercepting POST-requests handled by ky http client throws an TypeError "this._options.headers.get is not a function" #651
Comments
Just had the same problem with sveltekit...the problem is likely because this line
|
Small update...it was actually not that PR but probably the one before that introduced the bug https://github.com/mswjs/interceptors/pull/640/files |
Released: v0.36.5 🎉This has been released in v0.36.5! Make sure to always update to the latest version ( Predictable release automation by @ossjs/release. |
Thank you very much! This will help us a lot! |
When setting up intercepting POST-requests with MSW which are being handled by ky ( https://github.com/sindresorhus/ky ) I ran into an TypeError "this._options.headers.get is not a function" being raised in this line: https://github.com/sindresorhus/ky/blob/3ba40cc6333cf1847c02c51744e22ab7c04407f5/source/core/Ky.ts#L181
Since this behaviour occurs in MSW versions later than 2.4.3 I guess the issue is being right filed here.
The text was updated successfully, but these errors were encountered: