Skip to content

Commit

Permalink
fix: correctly handle BODY_SIZE_LIMIT=0 in Node adapter (#11574)
Browse files Browse the repository at this point in the history
* fix: correctly handle BODY_SIZE_LIMIT=0 in Node adapter

* add changeset
  • Loading branch information
Conduitry authored Jan 10, 2024
1 parent 97d6dfa commit 70d4464
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/short-crews-give.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@sveltejs/adapter-node": patch
---

fix: correctly handle BODY_SIZE_LIMIT=0
2 changes: 1 addition & 1 deletion packages/adapter-node/src/handler.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const address_header = env('ADDRESS_HEADER', '').toLowerCase();
const protocol_header = env('PROTOCOL_HEADER', '').toLowerCase();
const host_header = env('HOST_HEADER', 'host').toLowerCase();
const port_header = env('PORT_HEADER', '').toLowerCase();
const body_size_limit = parseInt(env('BODY_SIZE_LIMIT', '524288'));
const body_size_limit = parseInt(env('BODY_SIZE_LIMIT', '524288')) || undefined;

const dir = path.dirname(fileURLToPath(import.meta.url));

Expand Down

0 comments on commit 70d4464

Please sign in to comment.