Navigation Menu

Skip to content

Commit

Permalink
return less
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed May 14, 2014
1 parent f917592 commit 776aec9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Changes
@@ -1,5 +1,5 @@

5.0 2014-05-14
5.0 2014-05-15
- Code name "Tiger Face", this is a major release.
- Changed heuristics for number detection in Mojo::JSON to better line up
with user expectations.
Expand Down
4 changes: 2 additions & 2 deletions lib/Mojo/Message/Request.pm
Expand Up @@ -170,9 +170,9 @@ sub parse {
$self->proxy(Mojo::URL->new->userinfo($proxy_auth)) if $proxy_auth;

# "X-Forwarded-Proto"
return $self unless $self->reverse_proxy;
$base->scheme('https')
if ($headers->header('X-Forwarded-Proto') // '') eq 'https';
if $self->reverse_proxy
&& ($headers->header('X-Forwarded-Proto') // '') eq 'https';

return $self;
}
Expand Down

0 comments on commit 776aec9

Please sign in to comment.