mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2024-10-31 22:40:01 +00:00
include method and request uri in the generated fingerprint + idempotency key
This commit is contained in:
parent
dc02c87e2d
commit
f3e68e91ba
1 changed files with 4 additions and 1 deletions
|
@ -84,7 +84,10 @@ func Idempotency() gin.HandlerFunc {
|
|||
// NOTE: using the auth header is only an option
|
||||
// because we ONLY support bearer oauth tokens.
|
||||
key = c.Request.Header.Get("Authorization") +
|
||||
c.Request.UserAgent() + key
|
||||
c.Request.UserAgent() +
|
||||
c.Request.Method +
|
||||
c.Request.URL.RequestURI() +
|
||||
key
|
||||
|
||||
// Look for stored response.
|
||||
code, _ := responses.Get(key)
|
||||
|
|
Loading…
Reference in a new issue