Ask questionsBusboy is expecting the Content-Type header key to lower case

Hi guys,

I'm running into troubles when using Busboy to parse a multipart/form-data from serverless on AWS lambda.

My event.headers contains 'Content-Type': 'multipart/form-data; boundary=---------------------------30333176734664' but the lib fails with Error: Missing Content-Type' message.

It looks like the headers are not case sensitive (

Do you want me to push a PR that read the headers in a non-case sensitive way?

Best, Nicolas


Answer questions ngirardin

Hi mscdex,

Thanks for the quick reply.

This change would allow the lib to be RFC compliant and work and work out of the box with serverless / aws lambda and not be dependant on some node behavior.



Related questions

Error uploading large file - Out of Memory hot 1
client not receiving response after unpiping busboy from from limit event hot 1
how to handle exception when not any file uploaded hot 1
Github User Rank List