h3 0.3.7 → 0.3.8
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.cjs +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -226,7 +226,7 @@ function assertMethod(req, expected, allowHead) {
|
|
|
226
226
|
|
|
227
227
|
const RawBodySymbol = Symbol("h3RawBody");
|
|
228
228
|
const ParsedBodySymbol = Symbol("h3RawBody");
|
|
229
|
-
const PayloadMethods = ["PATCH", "POST", "PUT"];
|
|
229
|
+
const PayloadMethods = ["PATCH", "POST", "PUT", "DELETE"];
|
|
230
230
|
function useRawBody(req, encoding = "utf-8") {
|
|
231
231
|
assertMethod(req, PayloadMethods);
|
|
232
232
|
if (RawBodySymbol in req) {
|
package/dist/index.mjs
CHANGED
|
@@ -222,7 +222,7 @@ function assertMethod(req, expected, allowHead) {
|
|
|
222
222
|
|
|
223
223
|
const RawBodySymbol = Symbol("h3RawBody");
|
|
224
224
|
const ParsedBodySymbol = Symbol("h3RawBody");
|
|
225
|
-
const PayloadMethods = ["PATCH", "POST", "PUT"];
|
|
225
|
+
const PayloadMethods = ["PATCH", "POST", "PUT", "DELETE"];
|
|
226
226
|
function useRawBody(req, encoding = "utf-8") {
|
|
227
227
|
assertMethod(req, PayloadMethods);
|
|
228
228
|
if (RawBodySymbol in req) {
|