Skip to content

Busboy is expecting the Content-Type header key to lower case #210

@ngirardin

Description

@ngirardin

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 (https://stackoverflow.com/a/5259004/534838).

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

Best,
Nicolas

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions