mirror of
https://github.com/hashicorp/terraform.git
synced 2026-02-03 20:50:59 -05:00
Added a User-Agent header for remote-state http backend client
Added a User-Agent header for the http client to determine which client call to the backend.
This commit is contained in:
parent
e6665c4f43
commit
b2154fb455
1 changed files with 1 additions and 0 deletions
|
|
@ -60,6 +60,7 @@ func (c *httpClient) httpRequest(method string, url *url.URL, data *[]byte, what
|
|||
// Work with data/body
|
||||
if data != nil {
|
||||
req.Header.Set("Content-Type", "application/json")
|
||||
req.Header.Set("User-Agent", "Terraform-http-client/1.1")
|
||||
req.ContentLength = int64(len(*data))
|
||||
|
||||
// Generate the MD5
|
||||
|
|
|
|||
Loading…
Reference in a new issue