Skip to content

Commit

Permalink
feat(KRY-627): set X-Bolt-Availability-Zone header in Bolt requests (#46
Browse files Browse the repository at this point in the history
)

Co-authored-by: Kote <km@projectn.co>
  • Loading branch information
kmushegi and Kote committed Jul 17, 2023
1 parent a69f0b1 commit 951623b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions boltrouter/bolt_request.go
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ func (br *BoltRouter) NewBoltRequest(ctx context.Context, logger *zap.Logger, re
req.Host = br.boltVars.BoltHostname.Get()
req.Header.Set("X-Bolt-Auth-Prefix", authPrefix)
req.Header.Set("User-Agent", fmt.Sprintf("%s%s", br.boltVars.UserAgentPrefix.Get(), req.Header.Get("User-Agent")))
req.Header.Set("X-Bolt-Availability-Zone", br.boltVars.ZoneId.Get())

if !br.config.Passthrough {
req.Header.Set("X-Bolt-Passthrough-Read", "disable")
Expand Down

0 comments on commit 951623b

Please sign in to comment.