Skip to content

Commit

Permalink
💫 added multipart/form-data to base64 exclusion list as per netlify/n…
Browse files Browse the repository at this point in the history
  • Loading branch information
8eecf0d2 committed Oct 15, 2018
1 parent 61d8f2d commit d6fe73d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ts/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ export class Server {
}

private static lambdaRequest (request: express.Request): Netlify.Handler.Request {
const isBase64Encoded = request.body && !(request.headers["content-type"] || "").match(/text|application/);
const isBase64Encoded = request.body && !(request.headers["content-type"] || "").match(/text|application|multipart\/form-data/);

return {
path: request.path,
Expand Down

0 comments on commit d6fe73d

Please sign in to comment.