vafast 0.1.8 → 0.1.9
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/dist/index.js +1 -5
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -51853,11 +51853,7 @@ var import_cookie = __toESM(require_dist(), 1);
|
|
|
51853
51853
|
async function parseBody(req) {
|
|
51854
51854
|
const contentType = req.headers.get("content-type") || "";
|
|
51855
51855
|
if (contentType.includes("application/json")) {
|
|
51856
|
-
|
|
51857
|
-
return await req.json();
|
|
51858
|
-
} catch {
|
|
51859
|
-
return;
|
|
51860
|
-
}
|
|
51856
|
+
return await req.json();
|
|
51861
51857
|
}
|
|
51862
51858
|
if (contentType.includes("application/x-www-form-urlencoded")) {
|
|
51863
51859
|
const text2 = await req.text();
|