Skip to content

Commit

Permalink
AV-79411 custom user agent in HTTP header (#200)
Browse files Browse the repository at this point in the history
  • Loading branch information
l0n3star authored Jun 6, 2024
1 parent 8b9c25e commit 3076697
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ GOFLAGS=-mod=vendor
GOOPTS="-p 2"
GOFMT_FILES?=$$(find . -name '*.go')

GITTAG=$(shell git describe --always --tags)
GITTAG=$(shell git describe --tags --abbrev=0)
VERSION=$(GITTAG:v%=%)
LINKER_FLAGS=-s -w -X 'github.com/couchbasecloud/terraform-provider-couchbase-cloud/version.ProviderVersion=${VERSION}'
LINKER_FLAGS=-s -w -X 'github.com/couchbasecloud/terraform-provider-couchbase-capella/version.ProviderVersion=${VERSION}'

GOLANGCI_VERSION=v1.55.2

Expand Down
1 change: 1 addition & 0 deletions internal/api/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,7 @@ func (c *Client) ExecuteWithRetry(
}

req.Header.Set("Authorization", "Bearer "+authToken)
req.Header.Set("User-Agent", userAgent)
for header, value := range headers {
req.Header.Set(header, value)
}
Expand Down

0 comments on commit 3076697

Please sign in to comment.