Skip to content

Commit 5bad5ae

Browse files
committed
improve test coverage
1 parent 7cff78d commit 5bad5ae

File tree

2 files changed

+395
-365
lines changed

2 files changed

+395
-365
lines changed

src/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,7 @@ const multipart =
140140
req.body = await p((x) => {
141141
const boundary = getBoundary(req.headers['content-type']!)
142142
if (boundary) return parseMultipart(x, boundary, opts)
143+
return {}
143144
}, payloadLimit, payloadLimitErrorFn)(req, res, next)
144145
next()
145146
} else next()

0 commit comments

Comments
 (0)