aboutsummaryrefslogtreecommitdiffstats
path: root/vendor/github.com/felixge/httpsnoop/capture_metrics.go
diff options
context:
space:
mode:
authorTaras Madan <tarasmadan@google.com>2024-01-18 17:24:16 +0100
committerTaras Madan <tarasmadan@google.com>2024-01-18 16:35:00 +0000
commit21772ce4342bc8ecbb3e7c8747bba9aec14f3bbb (patch)
tree74b7a3823242a8c79fd1d365aae660fdcd4a19d3 /vendor/github.com/felixge/httpsnoop/capture_metrics.go
parentdf0ec93c2662a5189ec2077aee2bf823e392bf25 (diff)
Revert "mod: do: bump google.golang.org/api from 0.153.0 to 0.156.0"
Diffstat (limited to 'vendor/github.com/felixge/httpsnoop/capture_metrics.go')
-rw-r--r--vendor/github.com/felixge/httpsnoop/capture_metrics.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/vendor/github.com/felixge/httpsnoop/capture_metrics.go b/vendor/github.com/felixge/httpsnoop/capture_metrics.go
index bec7b71b3..b77cc7c00 100644
--- a/vendor/github.com/felixge/httpsnoop/capture_metrics.go
+++ b/vendor/github.com/felixge/httpsnoop/capture_metrics.go
@@ -52,7 +52,7 @@ func (m *Metrics) CaptureMetrics(w http.ResponseWriter, fn func(http.ResponseWri
return func(code int) {
next(code)
- if !(code >= 100 && code <= 199) && !headerWritten {
+ if !headerWritten {
m.Code = code
headerWritten = true
}