From 8c2df7880d5d74b0d43ef2255c478b08b39dd89c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Peter=20M=C3=BCller?= Date: Sat, 15 Sep 2018 12:56:38 +0200 Subject: [PATCH] Add multipart/form-data content-type to base64 exclusion list. Closes #42 --- lib/serve.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/serve.js b/lib/serve.js index 46374e36..af336adf 100644 --- a/lib/serve.js +++ b/lib/serve.js @@ -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,