Skip to content

Commit

Permalink
Fix variable name
Browse files Browse the repository at this point in the history
  • Loading branch information
jacekn committed Jan 7, 2025
1 parent 2fb10d0 commit c73910e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/ingress/metric/collectors/socket.go
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ var requestTags = []string{
"canary",
}

var validHttpMethods = []string{
var validHTTPMethods = []string{
// Unless otherwise noted, these are defined in RFC 7231 section 4.3.
"GET",
"HEAD",
Expand Down Expand Up @@ -330,7 +330,7 @@ func (sc *SocketCollector) handleMessage(msg []byte) {
if sc.reportStatusClasses && stats.Status != "" {
stats.Status = fmt.Sprintf("%cxx", stats.Status[0])
}
if !slices.Contains(validHttpMethods, stats.Method) {
if !slices.Contains(validHTTPMethods, stats.Method) {
stats.Method = "invalid_method"
}

Expand Down

0 comments on commit c73910e

Please sign in to comment.