镜像自地址
https://git.coolaj86.com/coolaj86/telebit.js.git
已同步 2025-07-01 17:26:31 +00:00
don't require subdomain
这个提交包含在:
父节点
0996d78ecd
当前提交
d5a622444e
@ -141,7 +141,7 @@ controllers.http = function (req, res, opts) {
|
|||||||
if (!opts.body) {
|
if (!opts.body) {
|
||||||
res.statusCode = 422;
|
res.statusCode = 422;
|
||||||
res.setHeader('Content-Type', 'application/json');
|
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;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -151,10 +151,10 @@ controllers.http = function (req, res, opts) {
|
|||||||
var indexes = opts.body.indexes;
|
var indexes = opts.body.indexes;
|
||||||
var remoteHost;
|
var remoteHost;
|
||||||
|
|
||||||
if (!subdomain) {
|
if (!portOrPath) {
|
||||||
res.statusCode = 422;
|
res.statusCode = 422;
|
||||||
res.setHeader('Content-Type', 'application/json');
|
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;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
正在加载...
x
在新工单中引用
屏蔽一个用户