It looks like the recent change from the commit https://github.com/node-nock/nock/commit/933cbada58d495a54a429bc09176d56d5f58f936?diff=split introduces a breaking change.
Specifically, in the line https://github.com/node-nock/nock/blob/933cbada58d495a54a429bc09176d56d5f58f936/lib/interceptor.js#L344.
Based on my understanding of the code, options.getHeader(header.name) can return undefined, which will lead to an error: TypeError: Cannot read property 'toString' of undefined when this is true.
cc: @KingHenne
Thanks @andrewaustin, I'll add some defensive coding and get a fix out ASAP
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue and add a reference to this one if it鈥檚 related. Thank you!
Most helpful comment
Thanks @andrewaustin, I'll add some defensive coding and get a fix out ASAP