fix linting issue
This commit is contained in:
parent
ef7137b763
commit
64114c0db2
1 changed files with 1 additions and 1 deletions
|
|
@ -48,7 +48,7 @@ const getUrlObject = (req) => {
|
||||||
const urlObject = new URL(`${req.protocol}://${req.headers.host}/`);
|
const urlObject = new URL(`${req.protocol}://${req.headers.host}/`);
|
||||||
// support overriding hostname by sending X-Forwarded-Host http header
|
// support overriding hostname by sending X-Forwarded-Host http header
|
||||||
urlObject.hostname = req.hostname;
|
urlObject.hostname = req.hostname;
|
||||||
|
|
||||||
// support add url prefix by sending X-Forwarded-Path http header
|
// support add url prefix by sending X-Forwarded-Path http header
|
||||||
const xForwardedPath = req.get('X-Forwarded-Path');
|
const xForwardedPath = req.get('X-Forwarded-Path');
|
||||||
if (xForwardedPath) {
|
if (xForwardedPath) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue