Skip to content

Commit

Permalink
remove the header with subpath
Browse files Browse the repository at this point in the history
Signed-off-by: Thomas Labarussias <[email protected]>
  • Loading branch information
Issif authored and poiana committed Sep 24, 2023
1 parent be149ef commit 44bb91c
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -139,15 +139,6 @@ func main() {
utils.WriteLog("warning", "Auhentication disabled")
e.Use(middleware.CORS())
}
e.Use(func(next echo.HandlerFunc) echo.HandlerFunc {
return func(c echo.Context) error {
c.Response().Header().Set("Subpath", config.Subpath)
if err := next(c); err != nil {
c.Error(err)
}
return nil
}
})

utils.WriteLog("info", fmt.Sprintf("Falcosidekick UI is listening on %v:%v", config.ListenAddress, config.ListenPort))
utils.WriteLog("info", fmt.Sprintf("Log level is %v", config.LogLevel))
Expand Down

0 comments on commit 44bb91c

Please sign in to comment.