Skip to content
Permalink
Browse files Browse the repository at this point in the history
security update
  • Loading branch information
FXG387 committed Mar 4, 2018
1 parent 573ade8 commit 56ccb03
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion index.js
Expand Up @@ -7,7 +7,7 @@ function getValueIgnoringKeyCase(obj, lookedKey) {
module.exports.parse = (event, spotText) => {
const boundary = getValueIgnoringKeyCase(event.headers, 'Content-Type').split('=')[1];
const body = (event.isBase64Encoded ? Buffer.from(event.body, 'base64').toString('binary') : event.body)
.split(new RegExp(boundary))
.split(boundary)
.filter(item => item.match(/Content-Disposition/))
.map((item) => {
if (item.match(/filename/)) {
Expand Down
2 changes: 1 addition & 1 deletion package.json
@@ -1,6 +1,6 @@
{
"name": "aws-lambda-multipart-parser",
"version": "0.1.1",
"version": "0.1.2",
"description": "Parser of multipart/form-data requests for AWS Lambda",
"main": "index.js",
"scripts": {
Expand Down

0 comments on commit 56ccb03

Please sign in to comment.