-
Notifications
You must be signed in to change notification settings - Fork 118
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
application/octet-stream for yaml #72
Comments
The behaviour is actually very surprising as it will fail to update an existing data object if the url is changed from one that has appropriate headers to one that doesn't, which in my opinion is a bug We had this data source, which was used to deploy the crds for cert-manager
it was then changed to this
I ran the plan and there was a warning about the content-type but when I tried to apply the plan, it failed as it had not applied the new crds. |
In my experience it acutally downloads the file. But it's still annoying to get the warning for everything you download from github releases. Apparently everything from there is always this file type: mislav/hub#1966 |
@a0s, @reallydontask, @toabi it seems that content-types that are not recognised as text have been "allowed" since v2.0.0 in that if the content-type is not identified as text then a warning is issued but the body (or response_body since v2.2.0) should still be populated with a string representation of the response body. There is an open #158 to include an additional attribute, response_body_base64_std which is intended to hold a standard base64 encoding of the response body. Additionally, a warning will only be issued if the response body is not valid UTF8. |
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. |
Terraform Version
Terraform v0.14.8
provider registry.terraform.io/hashicorp/http v2.1.0
Affected Resource(s)
Terraform Configuration Files
Debug Output
Expected Behavior
Should download yaml file
Actual Behavior
Shows warning and do nothing
Steps to Reproduce
terraform apply
Description
Pls remove limit on header for stream. As a modern repository
jetstack/cert-manager
(and many other repos) don't have released yaml inside repo thus it cant be accessed throughraw.githubusercontent.com
with right text headers.The text was updated successfully, but these errors were encountered: