Skip to content

Commit a4a8688

Browse files
committed
fix: remove pretty-printing from JSON responses to reduce payload size
1 parent 0e7a80c commit a4a8688

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ function corsHeaders(request) {
3030
}
3131

3232
function json(data, status = 200, headers = {}, request) {
33-
return new Response(JSON.stringify(data, null, 2), {
33+
return new Response(JSON.stringify(data), {
3434
status,
3535
headers: {
3636
"content-type": "application/json; charset=utf-8",

0 commit comments

Comments
 (0)