diff --git a/CHANGELOG.md b/CHANGELOG.md index 7e0ad61..a033b26 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -17,6 +17,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Returns an `io.ReadCloser` for streamed responses, allows passing an `io.ReadCloser` to request information. +### Changed + +## [1.3.2] - 2024-02-28 + +### Changed + +- Fix bug with headers inspection handler using wrong key. + ## [1.3.1] - 2024-02-09 ### Changed diff --git a/go.mod b/go.mod index f83a609..fb3d4e4 100644 --- a/go.mod +++ b/go.mod @@ -5,7 +5,7 @@ go 1.18 require ( github.com/google/uuid v1.6.0 github.com/microsoft/kiota-abstractions-go v1.5.6 - github.com/stretchr/testify v1.8.4 + github.com/stretchr/testify v1.9.0 go.opentelemetry.io/otel v1.24.0 go.opentelemetry.io/otel/trace v1.24.0 ) diff --git a/go.sum b/go.sum index ad80f7f..43fa178 100644 --- a/go.sum +++ b/go.sum @@ -20,8 +20,8 @@ github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZb github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= github.com/std-uritemplate/std-uritemplate/go v0.0.50 h1:LAE6WYRmLlDXPtEzr152BnD/MHxGCKmcp5D2Pw0NvmU= github.com/std-uritemplate/std-uritemplate/go v0.0.50/go.mod h1:CLZ1543WRCuUQQjK0BvPM4QrG2toY8xNZUm8Vbt7vTc= -github.com/stretchr/testify v1.8.4 h1:CcVxjf3Q8PM0mHUKJCdn+eZZtm5yQwehR5yeSVQQcUk= -github.com/stretchr/testify v1.8.4/go.mod h1:sz/lmYIOXD/1dqDmKjjqLyZ2RngseejIcXlSw2iwfAo= +github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsTg= +github.com/stretchr/testify v1.9.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY= go.opentelemetry.io/otel v1.24.0 h1:0LAOdjNmQeSTzGBzduGe/rU4tZhMwL5rWgtp9Ku5Jfo= go.opentelemetry.io/otel v1.24.0/go.mod h1:W7b9Ozg4nkF5tWI5zsXkaKKDjdVjpD4oAt9Qi/MArHo= go.opentelemetry.io/otel/metric v1.24.0 h1:6EhoGWWK28x1fbpA4tYTOWBkPefTDQnb8WSGXlc88kI= diff --git a/headers_inspection_handler.go b/headers_inspection_handler.go index c6a0554..34ddb19 100644 --- a/headers_inspection_handler.go +++ b/headers_inspection_handler.go @@ -90,7 +90,7 @@ func (middleware HeadersInspectionHandler) Intercept(pipeline Pipeline, middlewa defer span.End() req = req.WithContext(ctx) } - reqOption, ok := req.Context().Value(retryKeyValue).(headersInspectionOptionsInt) + reqOption, ok := req.Context().Value(headersInspectionKeyValue).(headersInspectionOptionsInt) if !ok { reqOption = &middleware.options }