Skip to content
Permalink
Browse files

change set to add for handling multiple upstreams

Signed-off-by: Zach Schuermann <zachary.zvs@gmail.com>
  • Loading branch information...
schuermannator authored and alexellis committed Jun 5, 2019
1 parent 9aff5e9 commit a4b14116fe54e104ae83cb4e1df4360b9ee1b639
Showing with 1 addition and 1 deletion.
  1. +1 −1 pkg/client/client.go
@@ -31,7 +31,7 @@ func (c *Client) Connect() error {
headers := http.Header{}
headers.Set(transport.InletsHeader, uuid.Formatter(uuid.NewV4(), uuid.FormatHex))
for k, v := range c.UpstreamMap {
headers.Set(transport.UpstreamHeader, fmt.Sprintf("%s=%s", k, v))
headers.Add(transport.UpstreamHeader, fmt.Sprintf("%s=%s", k, v))
}
if c.Token != "" {
headers.Add("Authorization", "Bearer "+c.Token)

0 comments on commit a4b1411

Please sign in to comment.
You can’t perform that action at this time.