Skip to content

Commit 6a7af1e

Browse files
Standardizes JSON content type in test cases
Updates the `contentType` field in test cases to use "application/json" instead of "application/json; charset=UTF-8" for consistency and to align with expected content type format. This change ensures uniformity in tests and avoids potential issues related to charset specification.
1 parent 9d2be49 commit 6a7af1e

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

server/internal/app/web_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ func TestWeb(t *testing.T) {
7575
path: "/reearth_config.json",
7676
statusCode: http.StatusOK,
7777
body: `{"a":"b","auth0Audience":"https://aud.example.com","auth0ClientId":"clientID","auth0Domain":"https://iss.example.com","published":"https://{}.example.com"}`,
78-
contentType: "application/json; charset=UTF-8",
78+
contentType: "application/json",
7979
},
8080
{
8181
name: "invalid path should serve index.html",
@@ -98,7 +98,7 @@ func TestWeb(t *testing.T) {
9898
path: "/data.json",
9999
statusCode: http.StatusNotFound,
100100
body: `{"error":"not found"}`,
101-
contentType: "application/json; charset=UTF-8",
101+
contentType: "application/json",
102102
},
103103
{
104104
name: "data file with host",

0 commit comments

Comments
 (0)