diff options
| author | Taras Madan <tarasmadan@google.com> | 2024-01-18 17:24:16 +0100 |
|---|---|---|
| committer | Taras Madan <tarasmadan@google.com> | 2024-01-18 16:35:00 +0000 |
| commit | 21772ce4342bc8ecbb3e7c8747bba9aec14f3bbb (patch) | |
| tree | 74b7a3823242a8c79fd1d365aae660fdcd4a19d3 /vendor/github.com/felixge/httpsnoop | |
| parent | df0ec93c2662a5189ec2077aee2bf823e392bf25 (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')
6 files changed, 12 insertions, 6 deletions
diff --git a/vendor/github.com/felixge/httpsnoop/.travis.yml b/vendor/github.com/felixge/httpsnoop/.travis.yml new file mode 100644 index 000000000..bfc421200 --- /dev/null +++ b/vendor/github.com/felixge/httpsnoop/.travis.yml @@ -0,0 +1,6 @@ +language: go + +go: + - 1.6 + - 1.7 + - 1.8 diff --git a/vendor/github.com/felixge/httpsnoop/Makefile b/vendor/github.com/felixge/httpsnoop/Makefile index 4e12afdd9..2d84889ae 100644 --- a/vendor/github.com/felixge/httpsnoop/Makefile +++ b/vendor/github.com/felixge/httpsnoop/Makefile @@ -1,7 +1,7 @@ .PHONY: ci generate clean ci: clean generate - go test -race -v ./... + go test -v ./... generate: go generate . diff --git a/vendor/github.com/felixge/httpsnoop/README.md b/vendor/github.com/felixge/httpsnoop/README.md index cf6b42f3d..ddcecd13e 100644 --- a/vendor/github.com/felixge/httpsnoop/README.md +++ b/vendor/github.com/felixge/httpsnoop/README.md @@ -7,8 +7,8 @@ http.Handlers. Doing this requires non-trivial wrapping of the http.ResponseWriter interface, which is also exposed for users interested in a more low-level API. -[](https://pkg.go.dev/github.com/felixge/httpsnoop) -[](https://github.com/felixge/httpsnoop/actions/workflows/main.yaml) +[](https://godoc.org/github.com/felixge/httpsnoop) +[](https://travis-ci.org/felixge/httpsnoop) ## Usage Example 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 } diff --git a/vendor/github.com/felixge/httpsnoop/wrap_generated_gteq_1.8.go b/vendor/github.com/felixge/httpsnoop/wrap_generated_gteq_1.8.go index 101cedde6..31cbdfb8e 100644 --- a/vendor/github.com/felixge/httpsnoop/wrap_generated_gteq_1.8.go +++ b/vendor/github.com/felixge/httpsnoop/wrap_generated_gteq_1.8.go @@ -1,5 +1,5 @@ // +build go1.8 -// Code generated by "httpsnoop/codegen"; DO NOT EDIT. +// Code generated by "httpsnoop/codegen"; DO NOT EDIT package httpsnoop diff --git a/vendor/github.com/felixge/httpsnoop/wrap_generated_lt_1.8.go b/vendor/github.com/felixge/httpsnoop/wrap_generated_lt_1.8.go index e0951df15..ab99c07c7 100644 --- a/vendor/github.com/felixge/httpsnoop/wrap_generated_lt_1.8.go +++ b/vendor/github.com/felixge/httpsnoop/wrap_generated_lt_1.8.go @@ -1,5 +1,5 @@ // +build !go1.8 -// Code generated by "httpsnoop/codegen"; DO NOT EDIT. +// Code generated by "httpsnoop/codegen"; DO NOT EDIT package httpsnoop |
