diff --git a/.changes/3.4.4.md b/.changes/3.4.4.md new file mode 100644 index 00000000..52e95e4d --- /dev/null +++ b/.changes/3.4.4.md @@ -0,0 +1,22 @@ +## 3.4.4 (July 31, 2024) + +NOTES: + +* data-source/http: Previous versions of this provider ignored any `Host` headers specified in the `request_headers` attribute when setting the HTTP request. Any specified `Host` request header will now be set on the HTTP request. + +For example, in the following configuration: +```hcl +data "http" "example" { + url = "https://www.example.com" + request_headers = { + Host = "www.differentexample.com" + } +} +``` +The HTTP request URL host is still `www.example.com` but the HTTP request `Host` header will now be `www.differentexample.com` instead of `www.example.com`. + ([#440](https://github.com/hashicorp/terraform-provider-http/issues/440)) + +BUG FIXES: + +* data-source/http: Allow `Host` header in `request_headers` to be set on HTTP request ([#440](https://github.com/hashicorp/terraform-provider-http/issues/440)) + diff --git a/.changes/unreleased/BUG FIXES-20240719-143606.yaml b/.changes/unreleased/BUG FIXES-20240719-143606.yaml deleted file mode 100644 index e3ddbc9b..00000000 --- a/.changes/unreleased/BUG FIXES-20240719-143606.yaml +++ /dev/null @@ -1,5 +0,0 @@ -kind: BUG FIXES -body: 'data-source/http: Allow `Host` header in `request_headers` to be set on HTTP request' -time: 2024-07-19T14:36:06.795798-04:00 -custom: - Issue: "440" diff --git a/.changes/unreleased/NOTES-20240723-162543.yaml b/.changes/unreleased/NOTES-20240723-162543.yaml deleted file mode 100644 index dc7917ae..00000000 --- a/.changes/unreleased/NOTES-20240723-162543.yaml +++ /dev/null @@ -1,17 +0,0 @@ -kind: NOTES -body: |+ - data-source/http: Previous versions of this provider ignored any `Host` headers specified in the `request_headers` attribute when setting the HTTP request. Any specified `Host` request header will now be set on the HTTP request. - - For example, in the following configuration: - ```hcl - data "http" "example" { - url = "https://www.example.com" - request_headers = { - Host = "www.differentexample.com" - } - } - ``` - The HTTP request URL host is still `www.example.com` but the HTTP request `Host` header will now be `www.differentexample.com` instead of `www.example.com`. -time: 2024-07-23T16:25:43.160519-04:00 -custom: - Issue: "440" diff --git a/CHANGELOG.md b/CHANGELOG.md index 5e7f608b..e2b89482 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,25 @@ +## 3.4.4 (July 31, 2024) + +NOTES: + +* data-source/http: Previous versions of this provider ignored any `Host` headers specified in the `request_headers` attribute when setting the HTTP request. Any specified `Host` request header will now be set on the HTTP request. + +For example, in the following configuration: +```hcl +data "http" "example" { + url = "https://www.example.com" + request_headers = { + Host = "www.differentexample.com" + } +} +``` +The HTTP request URL host is still `www.example.com` but the HTTP request `Host` header will now be `www.differentexample.com` instead of `www.example.com`. + ([#440](https://github.com/hashicorp/terraform-provider-http/issues/440)) + +BUG FIXES: + +* data-source/http: Allow `Host` header in `request_headers` to be set on HTTP request ([#440](https://github.com/hashicorp/terraform-provider-http/issues/440)) + ## 3.4.3 (June 03, 2024) BUG FIXES: