terraform-provider-http icon indicating copy to clipboard operation
terraform-provider-http copied to clipboard

Base64 encode response body

Open bendbennett opened this issue 3 years ago • 0 comments
trafficstars

Terraform CLI and Provider Versions

terraform v1.2.2 provider v2.2.0

Use Cases or Problem Statement

Currently, the http provider examines the Content-Type header to determine whether the response body is text. If binary data is contained within the response body, its conversion to string() renders the response body unusable and potentially problematic for Terraform to handle.

Proposal

Add an attribute which holds a base64 encoded version of the response body.

How much impact is this issue causing?

Low

Additional Information

No response

Code of Conduct

  • [X] I agree to follow this project's Code of Conduct

bendbennett avatar Jul 11 '22 10:07 bendbennett