From f2ab481b6fd22742bc8084b5e3ec90b9818d543d Mon Sep 17 00:00:00 2001 From: Sami Samhuri Date: Sun, 5 Jun 2011 10:53:20 -0700 Subject: [PATCH] fix text responders not sending body --- pusher.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pusher.js b/pusher.js index 2bf122c..151dc92 100755 --- a/pusher.js +++ b/pusher.js @@ -131,7 +131,7 @@ function parseRefSpec(spec) { } function textResponder(status, text) { - var headers = { 'content-type': 'text/plain', 'content-length': (text || ''.length) } + var headers = { 'content-type': 'text/plain', 'content-length': (text || '').length } return function(req, res) { res.writeHead(status, headers) res.end(text)