We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cb84cde commit 62277abCopy full SHA for 62277ab
1 file changed
benchmark/http_simple.js
@@ -1,7 +1,7 @@
1
path = require("path");
2
3
var puts = require("sys").puts;
4
-var old = false;
+var old = true;
5
6
http = require(old ? "http_old" : 'http');
7
if (old) puts('old version');
@@ -52,6 +52,10 @@ http.createServer(function (req, res) {
52
, "Content-Length": content_length
53
}
54
);
55
- if (old) res.write(body, 'ascii');
56
- res.close(body, 'ascii');
+ if (old) {
+ res.write(body, 'ascii');
57
+ res.close();
58
+ } else {
59
+ res.close(body, 'ascii');
60
+ }
61
}).listen(8000);
0 commit comments