vhost: treat ssl_port as integer when comparing
Actual fix for test failure for code introduced in abe4b49
This commit is contained in:
parent
6e76cab03b
commit
05ac65f3b1
1 changed files with 1 additions and 1 deletions
|
@ -79,7 +79,7 @@ server {
|
|||
<% end -%>
|
||||
<% if @rewrite_to_https -%>
|
||||
if ($ssl_protocol = "") {
|
||||
return 301 https://$host<% if @ssl_port != 443 %>:<%= @ssl_port %><% end %>$request_uri;
|
||||
return 301 https://$host<% if @ssl_port.to_i != 443 %>:<%= @ssl_port %><% end %>$request_uri;
|
||||
}
|
||||
<% end -%>
|
||||
<% if @index_files.count > 0 -%>
|
||||
|
|
Loading…
Reference in a new issue