From d5a622444e79c6b24e20651ed30e0642fe84ad41 Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Fri, 2 Nov 2018 10:31:31 -0600 Subject: [PATCH] don't require subdomain --- bin/telebitd.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bin/telebitd.js b/bin/telebitd.js index 1e0881b..ccd32d8 100755 --- a/bin/telebitd.js +++ b/bin/telebitd.js @@ -141,7 +141,7 @@ controllers.http = function (req, res, opts) { if (!opts.body) { res.statusCode = 422; res.setHeader('Content-Type', 'application/json'); - res.end(JSON.stringify({"error":{"message":"module \'http\' needs more arguments"}})); + res.end(JSON.stringify({"error":{"message":"module \'http\' needs some arguments"}})); return; } @@ -151,10 +151,10 @@ controllers.http = function (req, res, opts) { var indexes = opts.body.indexes; var remoteHost; - if (!subdomain) { + if (!portOrPath) { res.statusCode = 422; res.setHeader('Content-Type', 'application/json'); - res.end(JSON.stringify({ error: { message: "module 'http' needs more arguments" } })); + res.end(JSON.stringify({ error: { message: "module 'http' needs port or path" } })); return; }