Skip to content

Commit

Permalink
Merge pull request #58 from Munter/file-upload
Browse files Browse the repository at this point in the history
Add multipart/form-data content-type to base64 exclusion list. Closes #42
  • Loading branch information
swyxio authored Oct 11, 2018
2 parents 3209976 + 8c2df78 commit eee04c4
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 eee04c4

Please sign in to comment.