Skip to content

Commit 8c2df78

Browse files
committed
Add multipart/form-data content-type to base64 exclusion list. Closes #42
1 parent f12105b commit 8c2df78

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: lib/serve.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ function createHandler(dir) {
5959

6060
var isBase64 =
6161
request.body &&
62-
!(request.headers["content-type"] || "").match(/text|application/);
62+
!(request.headers["content-type"] || "").match(/text|application|multipart\/form-data/);
6363
var lambdaRequest = {
6464
path: request.path,
6565
httpMethod: request.method,

0 commit comments

Comments
 (0)