aboutsummaryrefslogtreecommitdiffhomepage
path: root/http
diff options
context:
space:
mode:
authorGravatar Frédéric Guillot <fred@miniflux.net>2018-04-27 22:25:00 -0700
committerGravatar Frédéric Guillot <fred@miniflux.net>2018-04-27 22:25:00 -0700
commit04adf5fdf53951f270923c41171a52575db53e46 (patch)
tree79a67f03cddd310e1b3c692fd938f22be7d9ea77 /http
parentddd3af4b85f5a2fe85c17a9cc30cf54743b9eb59 (diff)
Add middleware to read X-Forwarded-Proto header
Diffstat (limited to 'http')
-rw-r--r--http/handler/handler.go4
1 files changed, 0 insertions, 4 deletions
diff --git a/http/handler/handler.go b/http/handler/handler.go
index 59e8acd..137ff11 100644
--- a/http/handler/handler.go
+++ b/http/handler/handler.go
@@ -34,10 +34,6 @@ func (h *Handler) Use(f ControllerFunc) http.Handler {
return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
defer timer.ExecutionTime(time.Now(), r.URL.Path)
- if r.Header.Get("X-Forwarded-Proto") == "https" {
- h.cfg.IsHTTPS = true
- }
-
ctx := NewContext(r, h.store, h.router, h.translator)
request := NewRequest(r)
response := NewResponse(h.cfg, w, r, h.template)