aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/middlewares
diff options
context:
space:
mode:
Diffstat (limited to 'server/middlewares')
-rw-r--r--server/middlewares/servers.ts4
1 files changed, 1 insertions, 3 deletions
diff --git a/server/middlewares/servers.ts b/server/middlewares/servers.ts
index 87bbe9fd7..e16bc4a86 100644
--- a/server/middlewares/servers.ts
+++ b/server/middlewares/servers.ts
@@ -1,9 +1,7 @@
1import 'express-validator'
2import * as express from 'express' 1import * as express from 'express'
2import 'express-validator'
3import { getHostWithPort } from '../helpers' 3import { getHostWithPort } from '../helpers'
4 4
5import { REMOTE_SCHEME } from '../initializers'
6
7function setBodyHostsPort (req: express.Request, res: express.Response, next: express.NextFunction) { 5function setBodyHostsPort (req: express.Request, res: express.Response, next: express.NextFunction) {
8 if (!req.body.hosts) return next() 6 if (!req.body.hosts) return next()
9 7