@sveltejs/kit 2.4.2 → 2.4.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sveltejs/kit",
3
- "version": "2.4.2",
3
+ "version": "2.4.3",
4
4
  "description": "The fastest way to build Svelte apps",
5
5
  "repository": {
6
6
  "type": "git",
@@ -110,9 +110,9 @@ export async function getRequest({ request, base, bodySizeLimit }) {
110
110
  method: request.method,
111
111
  headers: /** @type {Record<string, string>} */ (request.headers),
112
112
  body:
113
- request.method === 'POST' || request.method === 'PUT' || request.method === 'PATCH'
114
- ? get_raw_body(request, bodySizeLimit)
115
- : undefined
113
+ request.method === 'GET' || request.method === 'HEAD'
114
+ ? undefined
115
+ : get_raw_body(request, bodySizeLimit)
116
116
  });
117
117
  }
118
118
 
package/src/version.js CHANGED
@@ -1,4 +1,4 @@
1
1
  // generated during release, do not modify
2
2
 
3
3
  /** @type {string} */
4
- export const VERSION = '2.4.2';
4
+ export const VERSION = '2.4.3';