Skip to content

Commit

Permalink
fix: update deps, busboy charset
Browse files Browse the repository at this point in the history
  • Loading branch information
izatop committed Jul 17, 2023
1 parent 45b276a commit bbe3209
Show file tree
Hide file tree
Showing 16 changed files with 144 additions and 145 deletions.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,11 @@
"@typescript-eslint/eslint-plugin": "^6.0.0",
"@typescript-eslint/parser": "^6.0.0",
"cross-env": "^7.0.3",
"eslint": "^8.44.0",
"eslint": "^8.45.0",
"eslint-plugin-import": "^2.27.5",
"eslint-plugin-unused-imports": "^3.0.0",
"jest": "^29.6.1",
"lerna": "^7.1.3",
"lerna": "^7.1.4",
"rimraf": "^5.0.1",
"ts-jest": "^29.1.1",
"typescript": "^5.1.6"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import {IRequest} from "../interfaces.js";

export const MultipartFormDataTransform = async <T = unknown>(request: IRequest): Promise<T> => {
request.headers.assert("Content-Type", (value) => value.startsWith("multipart/form-data"));
const bb = busboy({headers: request.headers.toJSON()});
const bb = busboy({headers: request.headers.toJSON(), defCharset: "utf-8"});
const rs = await request.createReadableStream();
const defer = new Defer<void>();
const result: Record<string, any> = {};
Expand Down
Loading

0 comments on commit bbe3209

Please sign in to comment.