Этот коммит содержится в:
=Corey Hulen
2015-07-06 11:20:40 -08:00
родитель 10b625ba17
Коммит e3ab0a4e3d
4 изменённых файлов: 10 добавлений и 8 удалений

Просмотреть файл

@@ -84,6 +84,7 @@ func (h handler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
if forwardProto == "http" {
l4g.Info("redirecting http request to https for %v", r.URL.Path)
http.Redirect(w, r, "https://"+r.Host, http.StatusTemporaryRedirect)
return
} else {
protocol = "https"
}