Skip to content

Commit

Permalink
(NOBIDS) ratelimit: fix getting from request (#2844)
Browse files Browse the repository at this point in the history
  • Loading branch information
guybrush authored Feb 29, 2024
1 parent f93669e commit 140c11a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ratelimit/ratelimit.go
Original file line number Diff line number Diff line change
Expand Up @@ -828,6 +828,10 @@ func getKey(r *http.Request) (key, ip string) {
if key != "" {
return key, ip
}
key = r.Header.Get("apikey")
if key != "" {
return key, ip
}
key = r.Header.Get("X-API-KEY")
if key != "" {
return key, ip
Expand Down

0 comments on commit 140c11a

Please sign in to comment.