Skip to content

Commit

Permalink
remove gzip media type header
Browse files Browse the repository at this point in the history
  • Loading branch information
josephbarnett committed Jul 8, 2024
1 parent e4a606b commit 3c7f06f
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions pkg/telemetry/post.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,8 @@ func Post(ctx context.Context, client *net.Client, cfg *config.Settings, accesso
endpoint := fmt.Sprintf("%s%s", cfg.Cloudzero.Host, URLPath)
_, err = http.Do(ctx, client, net.MethodPost,
map[string]string{
http.HeaderAuthorization: fmt.Sprintf("Bearer %s", cfg.Cloudzero.Credential),
http.HeaderContentEncoding: http.ContentTypeGzip,
http.HeaderContentType: http.ContentTypeProtobuf,
http.HeaderAuthorization: fmt.Sprintf("Bearer %s", cfg.Cloudzero.Credential),
http.HeaderContentType: http.ContentTypeProtobuf,
},
map[string]string{
http.QueryParamAccountID: cfg.Deployment.AccountID,
Expand Down

0 comments on commit 3c7f06f

Please sign in to comment.