Skip to content

Commit

Permalink
Add multipart/form-data content-type to base64 exclusion list. Closes #…
Browse files Browse the repository at this point in the history
  • Loading branch information
Munter committed Sep 15, 2018
1 parent f12105b commit 8c2df78
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/serve.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ function createHandler(dir) {

var isBase64 =
request.body &&
!(request.headers["content-type"] || "").match(/text|application/);
!(request.headers["content-type"] || "").match(/text|application|multipart\/form-data/);
var lambdaRequest = {
path: request.path,
httpMethod: request.method,
Expand Down

0 comments on commit 8c2df78

Please sign in to comment.