This repository has been archived by the owner. It is now read-only.

make sure the https redirect defaults to 443 #15

Closed
wants to merge 1 commit into
from
Jump to file or symbol
Failed to load files and symbols.
+1 −0
Split
View
@@ -49,6 +49,7 @@ def scheme(env)
def redirect_to_https(env)
req = Request.new(env)
url = URI(req.url)
+ url.port = nil # clear out the source port, so it doesn't get used as the default
url.scheme = "https"
url.host = @host if @host
url.port = @port if @port