Skip to content

Commit

Permalink
Merge pull request #157 from microsoft/fix/headers-option-key
Browse files Browse the repository at this point in the history
Fix handers inspection handler key
  • Loading branch information
baywet authored Feb 28, 2024
2 parents 78ed8cc + 30a0a88 commit 50e96cd
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
8 changes: 6 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Changed

## [1.3.1] - 2024-02-09
## [1.3.2] - 2024-02-28

### Added
### 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 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 50e96cd

Please sign in to comment.