node-replay icon indicating copy to clipboard operation
node-replay copied to clipboard

jsdom XMLHttpRequest reports no headers

Open justincy opened this issue 9 years ago • 0 comments

jsdom expects rawHeaders to be available. They are being generated internally but just not passed on. This can be fixed by adding rawHeaders: response.rawHeaders || [] to this block of code: https://github.com/assaf/node-replay/blob/f3c32141967d3a7fe090765167cde6c3244f7def/src/matcher.js#L51-L58

justincy avatar Aug 15 '16 21:08 justincy