summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--app/login.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/login.go b/app/login.go
index 4f9284140..2528f9367 100644
--- a/app/login.go
+++ b/app/login.go
@@ -138,7 +138,7 @@ func DoLogin(w http.ResponseWriter, r *http.Request, user *model.User, deviceId
}
func GetProtocol(r *http.Request) string {
- if r.Header.Get(model.HEADER_FORWARDED_PROTO) == "https" {
+ if r.Header.Get(model.HEADER_FORWARDED_PROTO) == "https" || r.TLS != nil {
return "https"
} else {
return "http"