We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4a180ca commit 477a1afCopy full SHA for 477a1af
main.go
@@ -17,6 +17,14 @@ func main() {
17
e.Use(middleware.HTTPSRedirect())
18
e.Use(middleware.Logger())
19
e.Use(middleware.Recover())
20
+ e.Use(func(next echo.HandlerFunc) echo.HandlerFunc {
21
+ return func(c echo.Context) error {
22
+ if *flagSendXSecuredBy {
23
+ c.Response().Header().Set("X-Secured-By", "https://github.com/alash3al/httpsify")
24
+ }
25
+ next(c)
26
27
+ })
28
29
e.Any("/*", handler)
30
0 commit comments