Skip to content

Commit 33b44e1

Browse files
committed
test: update Content-Type assertion in HTTP test
The Content-Type header in the HTTP response now includes a charset parameter. Update the test assertion to match the expected value.
1 parent 305e6d3 commit 33b44e1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/plugin/luai/module/http/http_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ func TestGetRequest(t *testing.T) {
6767
})
6868
assert(err == nil)
6969
assert(resp.status_code == 200)
70-
assert(resp.headers['Content-Type'] == 'application/json')
70+
assert(resp.headers['Content-Type'] == 'application/json; charset=utf-8')
7171
`
7272
eval(str, t)
7373
}

0 commit comments

Comments
 (0)