From e02643f32e4c97ca307f8fc5b69be79c40d70a3b Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Mon, 22 May 2017 20:58:25 +0200 Subject: Type models --- server/middlewares/pods.ts | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'server/middlewares/pods.ts') diff --git a/server/middlewares/pods.ts b/server/middlewares/pods.ts index e405f265e..c255be899 100644 --- a/server/middlewares/pods.ts +++ b/server/middlewares/pods.ts @@ -1,6 +1,4 @@ -'use strict' - -const constants = require('../initializers/constants') +import { REMOTE_SCHEME } from '../initializers' function setBodyHostsPort (req, res, next) { if (!req.body.hosts) return next() @@ -48,7 +46,7 @@ function getHostWithPort (host) { // The port was not specified if (splitted.length === 1) { - if (constants.REMOTE_SCHEME.HTTP === 'https') return host + ':443' + if (REMOTE_SCHEME.HTTP === 'https') return host + ':443' return host + ':80' } -- cgit v1.2.3