LinkedInAttic / sepia

Sepia is a VCR-like module for node.js that records HTTP interactions, then plays them back exactly like the first time they were invoked
Apache License 2.0
279 stars 32 forks source link

Add setMaxListeners to response.connection #6

Closed delwyn closed 10 years ago

delwyn commented 10 years ago

The commit below added a call to response.connection.setMaxListeners which need to be added to the fake response.connection otherwise it throws an error.

https://github.com/mikeal/request/commit/849c681846ce3b5492bd47261de391377a3ac19b

avik-das commented 10 years ago

Thanks for the change @delwyn . The long-term solution is the one from #5 but this is fine for the short-term.

avik-das commented 10 years ago

Published a new version (1.0.4) if you want to start using this.