Skip to content

Commit

Permalink
Revert "debug middleware"
Browse files Browse the repository at this point in the history
This reverts commit 03f255a.
  • Loading branch information
ajmandourah committed Oct 13, 2024
1 parent 03f255a commit 728b48c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ func createShop() TinShop {
r.MethodNotAllowedHandler = http.HandlerFunc(notAllowed)
r.Use(shop.StatsMiddleware)
r.Use(shop.TinfoilMiddleware)
// r.Use(shop.CORSMiddleware)
r.Use(shop.CORSMiddleware)
http.Handle("/", r)

var port = 3000
Expand Down
2 changes: 0 additions & 2 deletions security.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,6 @@ func (s *TinShop) TinfoilMiddleware(next http.Handler) http.Handler {
// Verify all headers
headers := r.Header

log.Println(headers)

if s.Shop.Config.DebugNoSecurity() {
next.ServeHTTP(w, r)
return
Expand Down

0 comments on commit 728b48c

Please sign in to comment.