.intercept() doesn't work with HTTP LIST method
Author: aqemiCreated Jul 24, 2025Updated Aug 2, 2025
Labelsbug
Please avoid duplicates
- I checked all open bugs and none of them matched my problem.
Reproducible test case
https://github.com/aqemi/nock14-issue
Nock Version
14.0.6
Node Version
22.16.0
TypeScript Version
No response
What happened?
Nock 14.0.6 doesn't properly intercept HTTP requests that use the LIST (and probably other non standard) method (except native Node's Fetch client) .
While nock successfully intercepts standard methods (GET, POST, etc.), requests using the LIST does not return any response (check attached repository).
Would you be interested in contributing a fix?
- yes
Source: nock/nock