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
206 stars 116 forks source link

Documentation indicates that only text/* or application/json response content types are supported #337

Closed bendbennett closed 11 months ago

bendbennett commented 11 months ago

Terraform CLI and Provider Versions

http provider: v3.4.0

Use Cases or Problem Statement

Documentation states the following:

At present this resource can only retrieve data from URLs that respond with text/* or application/json content types, and expects the result to be UTF-8 encoded regardless of the returned content type header.

This is inaccurate as binary data can now be handled. The response content type is now checked and a warning is raised if the response does not contain UTF-8 encoded data.

Proposal

Modify the statement indicating that "this resource can only retrieve data from URLs that respond with text/* or application/json content types, and expects the result to be UTF-8 encoded regardless of the returned content type header.".

As of version v3.4.0, binary data can be retrieved, and a warning is raised if the response does not contain UTF-8 encoded data.

How much impact is this issue causing?

Low

Additional Information

No response

Code of Conduct

github-actions[bot] commented 4 months ago

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.