josh/rack-ssl — pull request #15 by databus23 (2012-09-25 11:31:58+00:00)
Title: make sure the https redirect defaults to 443

This is a small addition to pull request #7.

If the redirect source url contains a port e.g. (http://example.com:8080) the current implementation generates a redirect to https://example.com:8080 which makes no sense.

This patch makes sure the redirect target contains no port information unless specified through the options, which means it should default to port 443.