Skip to content

Commit

Permalink
fix: isGCP function
Browse files Browse the repository at this point in the history
  • Loading branch information
nourbalaha committed Jul 12, 2023
1 parent 45c5ec8 commit f6e09fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion worker/internal/app/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ func (h Handler) isAWS(r *http.Request) bool {
func (h Handler) isGCP(r *http.Request) bool {
// TODO: need to find a better way to detect GCP requests
for headerName := range r.Header {
if strings.HasPrefix(headerName, "X-GOOG-") {
if strings.HasPrefix(strings.ToLower(headerName), "x-goog-") {
return true
}
}
Expand Down

0 comments on commit f6e09fe

Please sign in to comment.