use the same protocol when redirecting to default host
Merge pull request #1260 from lilydjwg/no-handler-redirect

use the same protocol when redirecting to default host