Skip to content

RAW Body with Multipart? #158

@JamesG-DPharos

Description

@JamesG-DPharos

Question

Has anyone figured out how to get the RAW Body with multipart/form requests?

I have a requirement where I need to verify an HMAC header with the RAW Body of the request.
Setting the includeUnparsed flag doesn't do anything when multipart = true. Looking at the code Koa-Body skips that completely on multipart.

In addition, adding the raw-body package just clobbers body parser and results in a hang.
I tried piping the stream but that doesn't seem to work.

Eg:

var stream1 = REQ.pipe(new stream.PassThrough())

Ideas?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions