Skip to content

Commit

Permalink
Update headers
Browse files Browse the repository at this point in the history
Signed-off-by: Mario Danic <mario@lovelyhq.com>
  • Loading branch information
mario committed Jan 12, 2018
1 parent 29402ee commit 63ca86e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/Controller/ClientFlowLoginController.php
Original file line number Diff line number Diff line change
Expand Up @@ -318,8 +318,8 @@ public function generateAppPassword($stateToken,
$protocol = $this->request->getServerProtocol();

if ($protocol != "https") {
$xForwardedProto = $this->request->getHeader('HTTP_X_FORWARDED_PROTO');
$xForwardedSSL = $this->request->getHeader('HTTP_X_FORWARDED_SSL');
$xForwardedProto = $this->request->getHeader('X-Forwarded-Proto');
$xForwardedSSL = $this->request->getHeader('X-Forwarded-Ssl');
if ($xForwardedProto === 'https' || $xForwardedSSL === 'on') {
$protocol = 'https';
}
Expand Down

0 comments on commit 63ca86e

Please sign in to comment.