Please avoid duplicates
Reproducible test case
tbd
Nock Version
nock@14.0.14
Node Version
v24.14.0
TypeScript Version
No response
What happened?
Previously, with nock version 14.0.13 and lower, the content-length header was automatically set. However, now with nock version 14.0.14, content-length header is not automatically set which is causing my http request library got to throw an error.
I was able to fix this by adding a call to scope.replyContentLength() in my test setup. But I wanted to raise awareness of the behavior change in case it was unintentional.
Would you be interested in contributing a fix?
Please avoid duplicates
Reproducible test case
tbd
Nock Version
nock@14.0.14
Node Version
v24.14.0
TypeScript Version
No response
What happened?
Previously, with
nockversion14.0.13and lower, the content-length header was automatically set. However, now withnockversion14.0.14, content-length header is not automatically set which is causing my http request librarygotto throw an error.I was able to fix this by adding a call to
scope.replyContentLength()in my test setup. But I wanted to raise awareness of the behavior change in case it was unintentional.Would you be interested in contributing a fix?