Skip to content

Commit

Permalink
oops
Browse files Browse the repository at this point in the history
  • Loading branch information
ignatiusmb committed Jul 10, 2021
1 parent ada3584 commit 3db0b35
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/kit/src/runtime/server/endpoint.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ export default async function render_route(request, route) {
(typeof body === 'object' || typeof body === 'undefined') &&
(!type || type.startsWith('application/json'))
) {
headers = { ...headers, 'content-type': 'application/json' };
headers = { ...headers, 'content-type': 'application/json; charset=utf-8' };
normalized_body = JSON.stringify(body || {});
} else {
normalized_body = /** @type {import('types/hooks').StrictBody} */ (body);
Expand Down

0 comments on commit 3db0b35

Please sign in to comment.