mirror of
https://github.com/thinkjs/thinkjs.git
synced 2026-01-25 14:42:47 +00:00
fix error word
This commit is contained in:
parent
40572a880f
commit
bbc5bbd2d4
@ -27,7 +27,7 @@ export default {
|
||||
NOT_SUPPORT_TRANSACTION: 'table engine is not support transaction',
|
||||
DATA_MUST_BE_ARRAY: 'data is not array list',
|
||||
PARAMS_TYPE_INVALID: 'params `{name}` type invalid',
|
||||
DISLLOW_PORT: 'proxy on, cannot visit with port',
|
||||
DISALLOW_PORT: 'proxy on, cannot visit with port',
|
||||
SERVICE_UNAVAILABLE: 'Service Unavailable',
|
||||
|
||||
validate_required: '{name} need is set',
|
||||
|
||||
@ -107,7 +107,7 @@ export default class extends think.base {
|
||||
}
|
||||
//deny access by ip + port
|
||||
if (think.config('proxy_on') && http.host !== http.hostname && !http.socket) {
|
||||
http.error = new Error(think.locale('DISLLOW_PORT'));
|
||||
http.error = new Error(think.locale('DISALLOW_PORT'));
|
||||
return think.statusAction(403, http);
|
||||
}
|
||||
let instance = domain.create();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user