fix error word

This commit is contained in:
welefen 2015-08-20 09:10:53 +08:00
parent 40572a880f
commit bbc5bbd2d4
2 changed files with 2 additions and 2 deletions

View File

@ -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',

View File

@ -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();