Skip to content

Commit

Permalink
removed bad line (#174)
Browse files Browse the repository at this point in the history
* removed bad line

* prep for release
  • Loading branch information
kristinapathak committed Apr 26, 2022
1 parent 17795e7 commit 22b9316
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
6 changes: 5 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.

## [Unreleased]

## [v0.6.4]
- Fixed stat fanout to not try to hit send endpoint. [#174](https://github.com/xmidt-org/scytale/pull/174)

## [v0.6.3]
- Fixed stat endpoint to use fanout prefix configuration. [#170](https://github.com/xmidt-org/scytale/pull/170)

Expand Down Expand Up @@ -106,7 +109,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
- Initial creation.


[Unreleased]: https://github.com/xmidt-org/scytale/compare/v0.6.3...HEAD
[Unreleased]: https://github.com/xmidt-org/scytale/compare/v0.6.4...HEAD
[v0.6.4]: https://github.com/xmidt-org/scytale/compare/v0.6.3...v0.6.4
[v0.6.3]: https://github.com/xmidt-org/scytale/compare/v0.6.2...v0.6.3
[v0.6.2]: https://github.com/xmidt-org/scytale/compare/v0.6.1...v0.6.2
[v0.6.1]: https://github.com/xmidt-org/scytale/compare/v0.6.0...v0.6.1
Expand Down
3 changes: 1 addition & 2 deletions primaryHandler.go
Original file line number Diff line number Diff line change
Expand Up @@ -404,11 +404,10 @@ func NewPrimaryHandler(logger log.Logger, v *viper.Viper, registry xmetrics.Regi
func(ctx context.Context, original, fanout *http.Request, body []byte) (context.Context, error) {
// strip the initial path and provide the configured one instead.
urlToUse := strings.TrimPrefix(strings.TrimPrefix(strings.TrimPrefix(original.URL.Path, "/"), apiBase), prevAPIBase)
fanout.URL.Path = fmt.Sprintf("%s/%s", fanoutPrefix, urlToUse)
fanout.URL.Path = fmt.Sprintf("%s%s", fanoutPrefix, urlToUse)
fanout.URL.RawPath = ""
return ctx, nil
},
fanout.UsePath(fmt.Sprintf("%s/device/send", fanoutPrefix)),
),
fanout.WithFanoutFailure(
fanout.ReturnHeadersWithPrefix("X-"),
Expand Down

0 comments on commit 22b9316

Please sign in to comment.