myshenin / aws-lambda-multipart-parser

Parser of multipart/form-data requests for AWS Lambda
MIT License
74 stars 38 forks source link

Regexp "Content-Type"; TypeError: Cannot read properties of null (reading '0') #32

Open daweedco opened 1 year ago

daweedco commented 1 year ago

Hello i want to signal an issue , if you send the headers with "content-type" instead of "Content-Type" you will face this error :

TypeError: Cannot read properties of null (reading '0').

Because there is a regexp in index.js checking only for "Content-Type" and not for "content-type"