diff options
author | =Corey Hulen <corey@hulen.com> | 2015-07-06 11:20:40 -0800 |
---|---|---|
committer | =Corey Hulen <corey@hulen.com> | 2015-07-06 11:20:40 -0800 |
commit | e3ab0a4e3ddb4b1bfacd2b82073c4a48e58751d6 (patch) | |
tree | 1bb90df1b0e35e420d3bafb4c4d586586ba88b3c /api/context.go | |
parent | 10b625ba1740c6177cfe5c06484f4a14867523bd (diff) | |
download | chat-e3ab0a4e3ddb4b1bfacd2b82073c4a48e58751d6.tar.gz chat-e3ab0a4e3ddb4b1bfacd2b82073c4a48e58751d6.tar.bz2 chat-e3ab0a4e3ddb4b1bfacd2b82073c4a48e58751d6.zip |
team code review
Diffstat (limited to 'api/context.go')
-rw-r--r-- | api/context.go | 1 |
1 files changed, 1 insertions, 0 deletions
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" } |