Skip to content

Commit a5eecf7

Browse files
authored
helper/logging: Update test Content-Type header to match terraform.io change (#1045)
Reference: https://github.com/hashicorp/terraform-plugin-sdk/actions/runs/2970165412 Previously: ``` --- FAIL: TestNewLoggingHTTPTransport (0.27s) /Users/bflad/src/github.com/hashicorp/terraform-plugin-sdk/helper/logging/logging_http_transport_test.go:93: Unexpected value for field "Content-Type"; expected "text/html", got "text/html; charset=utf-8" ``` Double checking the current situation with `curl`: ```console $ curl -I -s https://www.terraform.io | grep -i content-type content-type: text/html; charset=utf-8 ```
1 parent 1423b82 commit a5eecf7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

helper/logging/logging_http_transport_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ func TestNewLoggingHTTPTransport(t *testing.T) {
8181
"@level": "debug",
8282
"@module": "provider",
8383
"@message": "Received HTTP Response",
84-
"Content-Type": "text/html",
84+
"Content-Type": "text/html; charset=utf-8",
8585
"tf_http_op_type": "response",
8686
"tf_http_res_status_code": float64(200),
8787
"tf_http_res_version": "HTTP/2.0",
@@ -172,7 +172,7 @@ func TestNewSubsystemLoggingHTTPTransport(t *testing.T) {
172172
"@level": "debug",
173173
"@module": "provider.test-subsystem",
174174
"@message": "Received HTTP Response",
175-
"Content-Type": "text/html",
175+
"Content-Type": "text/html; charset=utf-8",
176176
"tf_http_op_type": "response",
177177
"tf_http_res_status_code": float64(200),
178178
"tf_http_res_version": "HTTP/2.0",

0 commit comments

Comments
 (0)