Go: redirecting from HTTP to HTTPS goes to localhost I’m trying to redirect from HTTP to HTTPS in Go, but no matter what it goes to localhost: