Skip to content

Commit a374161

Browse files
committed
Merge pull request #59 from hzoo/patch-1
use res.end: reverting #27
2 parents e2a0298 + eb8c505 commit a374161

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

middleware.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,8 @@ module.exports = function(compiler, options) {
186186
res.setHeader(name, options.headers[name]);
187187
}
188188
}
189-
res.send(content);
189+
if (res.send) res.send(content);
190+
else res.end(content);
190191
}
191192
}
192193

0 commit comments

Comments
 (0)