vhost: treat ssl_port as integer when comparing

Actual fix for test failure for code introduced in abe4b49
This commit is contained in:
Matthew Haughton 2014-10-23 14:12:20 -04:00
parent 6e76cab03b
commit 05ac65f3b1

View file

@ -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 -%>