Permalink
Browse files

Make a connection object available on the response

  • Loading branch information...
1 parent 042743a commit aae1879db5b37339c0ce9b6d40ff219b7bcdeaab @temas temas committed Dec 18, 2012
Showing with 2 additions and 0 deletions.
  1. +2 −0 fakeweb.js
View
@@ -42,6 +42,8 @@ function httpModuleRequest(uri, callback) {
thisRequest.end = function() {
var thisResponse = new EventEmitter();
+ // Request module checks against the connection object event emitter
+ thisResponse.connection = thisResponse;
thisResponse.pause = thisResponse.resume = {apply:function(){}};
thisResponse.setEncoding = function() {};
thisResponse.pipe = function(outputStream) {

0 comments on commit aae1879

Please sign in to comment.