Skip to content

Commit

Permalink
Upgraded to the current webpa-common
Browse files Browse the repository at this point in the history
  • Loading branch information
johnabass committed Feb 21, 2019
1 parent 3e5322e commit ae8e30d
Show file tree
Hide file tree
Showing 3 changed files with 53 additions and 33 deletions.
81 changes: 51 additions & 30 deletions src/glide.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/glide.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ package: .
homepage: https://github.com/Comcast/petasos
import:
- package: github.com/Comcast/webpa-common
version: cb12a1646c5a710cb34dd6b02453be62b3171266
version: ee36b7e7561c779aa65a66fbef35b46720486987
3 changes: 1 addition & 2 deletions src/petasos/petasos.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,13 +84,12 @@ func petasos(arguments []string) int {
accessor = new(service.UpdatableAccessor)

redirectHandler = &servicehttp.RedirectHandler{
Logger: logger,
KeyFunc: device.IDHashParser,
Accessor: accessor,
RedirectCode: http.StatusTemporaryRedirect,
}

requestFunc = logginghttp.SetLogger(redirectHandler.Logger, logginghttp.Header("X-Webpa-Device-Name", "device_id"), logginghttp.Header("Authorization", "authorization"))
requestFunc = logginghttp.SetLogger(logger, logginghttp.Header("X-Webpa-Device-Name", "device_id"), logginghttp.Header("Authorization", "authorization"))
decoratedHandler = alice.New(xcontext.Populate(0, requestFunc)).Then(redirectHandler)

_, petasosServer, done = webPA.Prepare(logger, nil, metricsRegistry, decoratedHandler)
Expand Down

0 comments on commit ae8e30d

Please sign in to comment.