mswjs / interceptors

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

Intercepting POST-requests handled by ky http client throws an TypeError "this._options.headers.get is not a function" #651

Open inxmail-de-cln opened 4 days ago

inxmail-de-cln commented 4 days ago

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.