diff options
author | Zach Berwaldt <zberwaldt@tutamail.com> | 2024-03-16 09:44:50 -0400 |
---|---|---|
committer | Zach Berwaldt <zberwaldt@tutamail.com> | 2024-03-16 09:44:50 -0400 |
commit | 6e187ccc973d55cd73de4eeb8498936d41a5a904 (patch) | |
tree | 556aff839f317ff5a9eede3c33d3645683b2bb82 /api/internal/middleware | |
parent | 6f8cfbd6cc3d5adbda38e74013c68e3d4745766d (diff) |
remove unnessary logs. remove logger and recovery, default has these
Diffstat (limited to 'api/internal/middleware')
-rw-r--r-- | api/internal/middleware/middleware.go | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/api/internal/middleware/middleware.go b/api/internal/middleware/middleware.go index aa27fb8..2333457 100644 --- a/api/internal/middleware/middleware.go +++ b/api/internal/middleware/middleware.go | |||
@@ -2,7 +2,6 @@ package middleware | |||
2 | 2 | ||
3 | import ( | 3 | import ( |
4 | "errors" | 4 | "errors" |
5 | "log" | ||
6 | "net/http" | 5 | "net/http" |
7 | "strings" | 6 | "strings" |
8 | 7 | ||
@@ -31,7 +30,6 @@ func CORSMiddleware() gin.HandlerFunc { | |||
31 | c.Writer.Header().Set("Access-Control-Allow-Methods", "POST, OPTIONS, GET, PUT, PATCH") | 30 | c.Writer.Header().Set("Access-Control-Allow-Methods", "POST, OPTIONS, GET, PUT, PATCH") |
32 | 31 | ||
33 | if c.Request.Method == "OPTIONS" { | 32 | if c.Request.Method == "OPTIONS" { |
34 | log.Println(c.Request.Header) | ||
35 | c.AbortWithStatus(http.StatusNoContent) | 33 | c.AbortWithStatus(http.StatusNoContent) |
36 | return | 34 | return |
37 | } | 35 | } |