Skip to content

Commit

Permalink
πŸ› Use request URL path instead of handler name
Browse files Browse the repository at this point in the history
  • Loading branch information
0x46616c6b committed Nov 3, 2023
1 parent 1c76b41 commit 26122c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/api/middleware/response_cache/response_cache.go
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ func CreateKey(c *gin.Context) string {
if err != nil {
domain = "unknown"
}
name := c.HandlerName()
name := c.Request.URL.Path
query := c.Request.URL.Query().Encode()

return fmt.Sprintf("response:%s:%s:%s", domain, name, query)
Expand Down

0 comments on commit 26122c6

Please sign in to comment.