Skip to content

Commit

Permalink
Merge branch 'main' into feat/stream-byte-content
Browse files Browse the repository at this point in the history
  • Loading branch information
rkodev authored Mar 7, 2024
2 parents e6cc2ad + 51c8f26 commit 3e691c2
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 4 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -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
)
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -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=
Expand Down
2 changes: 1 addition & 1 deletion headers_inspection_handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 3e691c2

Please sign in to comment.