Skip to content

Commit

Permalink
Header split fix?
Browse files Browse the repository at this point in the history
  • Loading branch information
kvizdos committed Aug 10, 2019
1 parent ba1bbd7 commit 72e6402
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions proxy/proxy.js
Expand Up @@ -38,6 +38,12 @@ function parseCookies (request) {
}

const confirmAuth = (host, url, req) => {
if(req.headers.host == undefined) {
return new Promise((resolve, reject) => {
resolve(false);
})
}

const mainApp = req.headers.host.split(".")[0]

const cookies = parseCookies(req);
Expand Down

0 comments on commit 72e6402

Please sign in to comment.