aneilbaboo/replayer

Sepia is Causing Duplicate Requests

aneilbaboo opened this issue · 1 comments

This problem was originally discovered in sepia (from which this was forked): LinkedInAttic/sepia#12

It should be easy enough to fix in replayer. The replacement functions are named "replayerRequest", so we should be able to fix this by checking whether protocolModule.request.name=='replayerRequest'. We'll still need to capture the original request method. However, the way the code is currently written, we won't have a copy of the original request method anymore in the second iteration of the loop in cache.js:

['http', 'https'].forEach(function (protocol) {
   ...
}

I think this was addressed by #1, so closing.