From b549b3fcce9aaff8936670420509bff25d2ed49e Mon Sep 17 00:00:00 2001 From: Ryan Dahl Date: Tue, 13 Apr 2010 16:43:15 -0700 Subject: [PATCH] Fix test case style --- test/pummel/test-http-big-proxy-responses.js | 41 ++++++++++---------- 1 file changed, 21 insertions(+), 20 deletions(-) diff --git a/test/pummel/test-http-big-proxy-responses.js b/test/pummel/test-http-big-proxy-responses.js index c95b70cfc2c..431ac05cdfc 100644 --- a/test/pummel/test-http-big-proxy-responses.js +++ b/test/pummel/test-http-big-proxy-responses.js @@ -6,34 +6,36 @@ url = require("url"); // Produce a very large response. var chargen = http.createServer(function (req, res) { - var chunk = '01234567890123456789'; - var len = req.headers['x-len']; - res.writeHead(200, {"transfer-encoding":"chunked"}); - for (var i=0; i 0) { @@ -47,8 +49,7 @@ function call_chargen(list) { }); }); req.end(); - } - else { + } else { sys.puts("End of list."); proxy.end(); chargen.end();