Skip to content

Commit

Permalink
test: fix
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-akait committed Apr 22, 2024
1 parent 265dbb5 commit a57d1fd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/Server.js
Expand Up @@ -1905,7 +1905,7 @@ class Server {
return;
}

res.setHeader("Content-Type", "application/javascript");
res.setHeader("Content-Type", "application/javascript; charset=UTF-8");
res.setHeader("Content-Length", stats.size);

if (req.method === "HEAD") {
Expand Down
4 changes: 2 additions & 2 deletions test/e2e/__snapshots__/built-in-routes.test.js.snap.webpack5
Expand Up @@ -70,14 +70,14 @@ exports[`Built in routes with simple config should handles GET request to sockjs

exports[`Built in routes with simple config should handles GET request to sockjs bundle: page errors 1`] = `[]`;

exports[`Built in routes with simple config should handles GET request to sockjs bundle: response headers content-type 1`] = `"application/javascript"`;
exports[`Built in routes with simple config should handles GET request to sockjs bundle: response headers content-type 1`] = `"application/javascript; charset=UTF-8"`;

exports[`Built in routes with simple config should handles GET request to sockjs bundle: response status 1`] = `200`;

exports[`Built in routes with simple config should handles HEAD request to sockjs bundle: console messages 1`] = `[]`;

exports[`Built in routes with simple config should handles HEAD request to sockjs bundle: page errors 1`] = `[]`;

exports[`Built in routes with simple config should handles HEAD request to sockjs bundle: response headers content-type 1`] = `"application/javascript"`;
exports[`Built in routes with simple config should handles HEAD request to sockjs bundle: response headers content-type 1`] = `"application/javascript; charset=UTF-8"`;

exports[`Built in routes with simple config should handles HEAD request to sockjs bundle: response status 1`] = `200`;

0 comments on commit a57d1fd

Please sign in to comment.