hashicorp / terraform-provider-http

Utility provider for interacting with generic HTTP servers as part of a Terraform configuration.
https://registry.terraform.io/providers/hashicorp/http/latest
Mozilla Public License 2.0
204 stars 112 forks source link

Allow `Host` request header to override the http request host #440

Closed SBGoods closed 1 month ago

SBGoods commented 1 month ago

Closes: #311

This PR allows the Host request header to override the http request host. The Go standard net/http library intentionally ignores the Host request header when writing the http request. If there is a Host request header, we override the http.Request.Host before the request is sent.