diff --git a/src/routes/apps.js b/src/routes/apps.js index b950cbb72..2f1bfd300 100644 --- a/src/routes/apps.js +++ b/src/routes/apps.js @@ -409,7 +409,6 @@ async function setLocation(req, res, next) { assert.strictEqual(typeof req.app, 'object'); if (typeof req.body.subdomain !== 'string') return next(new HttpError(400, 'subdomain must be string')); // subdomain may be an empty string - if (!req.body.domain) return next(new HttpError(400, 'domain is required')); if (typeof req.body.domain !== 'string') return next(new HttpError(400, 'domain must be string')); if ('portBindings' in req.body && typeof req.body.portBindings !== 'object') return next(new HttpError(400, 'portBindings must be an object'));