From 04adf5fdf53951f270923c41171a52575db53e46 Mon Sep 17 00:00:00 2001 From: Frédéric Guillot Date: Fri, 27 Apr 2018 22:25:00 -0700 Subject: Add middleware to read X-Forwarded-Proto header --- daemon/routes.go | 1 + 1 file changed, 1 insertion(+) (limited to 'daemon') diff --git a/daemon/routes.go b/daemon/routes.go index 74445c3..f11e6d6 100644 --- a/daemon/routes.go +++ b/daemon/routes.go @@ -39,6 +39,7 @@ func routes(cfg *config.Config, store *storage.Storage, feedHandler *feed.Handle router = router.PathPrefix(cfg.BasePath()).Subrouter() } + router.Use(middleware.HeaderConfig) router.Use(middleware.Logging) router.HandleFunc("/healthcheck", func(w http.ResponseWriter, r *http.Request) { -- cgit v1.2.3