Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export function endpointHandler<T = any>(
}

// check so we can know later on if we should JSON.stringify the body
const isJson = headers.get('Content-Type')!.includes('application/json');
const isJson = headers.get('Content-Type')!.includes('json');

return response(status, headers, async ({ write }) => {
const body = pendingBody !== undefined ? await pendingBody : resolvedBody;
Expand Down