Skip to content

Commit

Permalink
Merge branch 'release/1.2.1'
Browse files Browse the repository at this point in the history
  • Loading branch information
deviantony committed Jan 21, 2019
2 parents 3a35541 + cbccde8 commit 9fdcf81
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion agent.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ type (

const (
// AgentVersion represents the version of the agent.
AgentVersion = "1.2.0"
AgentVersion = "1.2.1"
// APIVersion represents the version of the agent's API.
APIVersion = "2"
// DefaultListenAddr is the default address used by the web server.
Expand Down
1 change: 1 addition & 0 deletions http/proxy/proxy.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ func proxyWebsocketRequest(rw http.ResponseWriter, request *http.Request, target
proxy := websocketproxy.NewProxy(target)
proxy.Director = func(incoming *http.Request, out http.Header) {
out.Set(agent.HTTPSignatureHeaderName, request.Header.Get(agent.HTTPSignatureHeaderName))
out.Set(agent.HTTPPublicKeyHeaderName, request.Header.Get(agent.HTTPPublicKeyHeaderName))
out.Set(agent.HTTPTargetHeaderName, targetNode)
}
proxy.Dialer = &websocket.Dialer{
Expand Down

0 comments on commit 9fdcf81

Please sign in to comment.