support older servers

This commit is contained in:
AJ ONeal 2018-06-21 18:59:56 +00:00
parent 5491b8d91d
commit 5c28bff26b
1 changed files with 1 additions and 1 deletions

View File

@ -199,7 +199,7 @@ common.api.token = function (state, handlers) {
});
}
if (dir) {
if (dir && dir.api_host) {
handlers.directory(dir, afterDir);
} else {
// backwards compat