From e3ab0a4e3ddb4b1bfacd2b82073c4a48e58751d6 Mon Sep 17 00:00:00 2001 From: =Corey Hulen Date: Mon, 6 Jul 2015 11:20:40 -0800 Subject: team code review --- api/context.go | 1 + 1 file changed, 1 insertion(+) (limited to 'api/context.go') diff --git a/api/context.go b/api/context.go index 501e4e77f..bea0fbeff 100644 --- a/api/context.go +++ b/api/context.go @@ -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" } -- cgit v1.2.3-1-g7c22