We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c5307f0 commit 1917c50Copy full SHA for 1917c50
packages/http-multipart-body-parser/index.js
@@ -2,7 +2,7 @@ import BusBoy from "@fastify/busboy";
2
import { createError } from "@middy/util";
3
4
const mimePattern =
5
- /^multipart\/form-data; boundary=[-]*[a-zA-Z0-9-]*(; ?[cC]harset=[\w-]+)?$/;
+ /^multipart\/form-data; boundary=[a-zA-Z0-9-]{1,70}(; ?[cC]harset=[\w-]+)?$/;
6
const fieldnamePattern = /(.+)\[(.*)]$/;
7
8
const defaults = {
0 commit comments