Skip to content

Commit

Permalink
Update pkg/auth/transport.go
Browse files Browse the repository at this point in the history
Co-authored-by: Alexander Stone <[email protected]>
  • Loading branch information
deangalvin-cb and alex-stone authored Sep 12, 2024
1 parent 65b9f9f commit 7c1b8ca
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions pkg/auth/transport.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,15 @@ func (t *transport) RoundTrip(req *http.Request) (*http.Response, error) {
}

req.Header.Set("Authorization", fmt.Sprintf("Bearer %s", jwt))
fmt.Sprintf(
"%s,%s",
fmt.Sprintf("%s=%s", "sdk_version", "0.0.6"),
fmt.Sprintf("%s=%s", "sdk_language", "go"),

req.Header.Set(
"Correlation-Context",
fmt.Sprintf(
"%s,%s",
fmt.Sprintf("%s=%s", "sdk_version", "0.0.6"),
fmt.Sprintf("%s=%s", "sdk_language", "go"),
),
)
req.Header.Set("Correlation-Context", fmt.Sprintf("Bearer %s", jwt))

return t.transport.RoundTrip(req)
}

0 comments on commit 7c1b8ca

Please sign in to comment.