[Pkg-javascript-commits] [node-static] 113/151: call ReadableStream#resume() on the request

Tonnerre Lombard tonnerre-guest at moszumanska.debian.org
Tue Jan 7 23:18:02 UTC 2014


This is an automated email from the git hooks/post-receive script.

tonnerre-guest pushed a commit to branch master
in repository node-static.

commit 5e02b211ff14230854126322b83d21b42f975b71
Author: Aaron Stacy <aaron.r.stacy at gmail.com>
Date:   Tue Apr 2 11:32:47 2013 -0500

    call ReadableStream#resume() on the request
    
    in node v0.10, [you must call `resume()` in order to get the 'end'
    event][node_zero_ten]. this adds the call on the request handler.
    
    this adds the `resume()` call to the cli. it shouldn't cause any
    backwards-incompatible changes.
    
    [node_zero_ten]: http://blog.nodejs.org/2012/12/20/streams2/
---
 bin/cli.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/bin/cli.js b/bin/cli.js
index b678643..632b112 100755
--- a/bin/cli.js
+++ b/bin/cli.js
@@ -97,7 +97,7 @@ require('http').createServer(function (request, response) {
                 log(request, response);
             }
         });
-    });
+    }).resume();
 }).listen(+argv.port);
 
 console.log('serving "' + dir + '" at http://127.0.0.1:' + argv.port);

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-static.git



More information about the Pkg-javascript-commits mailing list