Skip to content

Commit c73910e

Browse files
committed
Fix variable name
1 parent 2fb10d0 commit c73910e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

internal/ingress/metric/collectors/socket.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ var requestTags = []string{
9999
"canary",
100100
}
101101

102-
var validHttpMethods = []string{
102+
var validHTTPMethods = []string{
103103
// Unless otherwise noted, these are defined in RFC 7231 section 4.3.
104104
"GET",
105105
"HEAD",
@@ -330,7 +330,7 @@ func (sc *SocketCollector) handleMessage(msg []byte) {
330330
if sc.reportStatusClasses && stats.Status != "" {
331331
stats.Status = fmt.Sprintf("%cxx", stats.Status[0])
332332
}
333-
if !slices.Contains(validHttpMethods, stats.Method) {
333+
if !slices.Contains(validHTTPMethods, stats.Method) {
334334
stats.Method = "invalid_method"
335335
}
336336

0 commit comments

Comments
 (0)