don't require subdomain

This commit is contained in:
AJ ONeal 2018-11-02 10:31:31 -06:00
rodzic 0996d78ecd
commit d5a622444e
1 zmienionych plików z 3 dodań i 3 usunięć

Wyświetl plik

@ -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;
}