diff --git a/README.md b/README.md index ece3cc8..d7c542b 100644 --- a/README.md +++ b/README.md @@ -264,7 +264,7 @@ Busboy methods * **Busboy expected an options-Object with headers-attribute.** - The first parameter is lacking of a headers-attribute. - * **Limit $limit is not a valid number** - Busboy expected the desired limit to be of type number. Busboy throws this Error to prevent a potential security issue by falling silently back to the Busboy-defaults. Potential source for this Error can be the direct use of environment variables without transforming them to the type number. + * **Limit $limit is not a valid number** - Busboy expected the desired limit to be of type number. Busboy throws this Error to prevent a potential security issue by falling silently back to the Busboy-defaults. Potential source for this Error can be the direct use of environment variables without transforming them to the type number. * **Unsupported Content-Type.** - The `Content-Type` isn't one Busboy can parse. diff --git a/lib/main.d.ts b/lib/main.d.ts index 91b6448..a39281b 100644 --- a/lib/main.d.ts +++ b/lib/main.d.ts @@ -33,11 +33,11 @@ export interface BusboyConfig { defCharset?: string | undefined; /** * Detect if a Part is a file. - * - * By default a file is detected if contentType + * + * By default a file is detected if contentType * is application/octet-stream or fileName is not * undefined. - * + * * Modify this to handle e.g. Blobs. */ isPartAFile?: (fieldName: string | undefined, contentType: string | undefined, fileName: string | undefined) => boolean; diff --git a/test/fixtures/nested-full/part2.header b/test/fixtures/nested-full/part2.header index bbe4513..21cea6e 100644 --- a/test/fixtures/nested-full/part2.header +++ b/test/fixtures/nested-full/part2.header @@ -1,2 +1,2 @@ -{"content-disposition": ["form-data; name=\"files\""], +{"content-disposition": ["form-data; name=\"files\""], "content-type": ["multipart/mixed, boundary=BbC04y"]} \ No newline at end of file diff --git a/test/fixtures/nested/part2.header b/test/fixtures/nested/part2.header index bbe4513..21cea6e 100644 --- a/test/fixtures/nested/part2.header +++ b/test/fixtures/nested/part2.header @@ -1,2 +1,2 @@ -{"content-disposition": ["form-data; name=\"files\""], +{"content-disposition": ["form-data; name=\"files\""], "content-type": ["multipart/mixed, boundary=BbC04y"]} \ No newline at end of file