0.8 compatibility

This commit is contained in:
osher
2014-11-05 11:58:09 +02:00
parent 9da158f945
commit 2f44dbf53e
2 changed files with 6 additions and 3 deletions
+1 -1
View File
@@ -41,7 +41,7 @@ function MockRequest(remoteAddr, method, originalUrl, headers) {
function MockResponse() {
var r = this;
this.end = function(chunk, encoding) {
setImmediate(function(){ r.emit('finish') });
r.emit('finish');
};
this.writeHead = function(code, headers) {