mirror of
https://github.com/samsonjs/ThePusher.git
synced 2026-04-27 15:07:43 +00:00
fix text responders not sending body
This commit is contained in:
parent
160300f39b
commit
f2ab481b6f
1 changed files with 1 additions and 1 deletions
|
|
@ -131,7 +131,7 @@ function parseRefSpec(spec) {
|
||||||
}
|
}
|
||||||
|
|
||||||
function textResponder(status, text) {
|
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) {
|
return function(req, res) {
|
||||||
res.writeHead(status, headers)
|
res.writeHead(status, headers)
|
||||||
res.end(text)
|
res.end(text)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue