Skip to content

Support UInt8Array data in response #539

@Poitrin

Description

@Poitrin

Next.js 12.1 SSR delivers response data in UInt8Array format. In Node.js both string and UInt8Array are supported in function signature. See https://nodejs.org/dist/latest-v16.x/docs/api/buffer.html#static-method-bufferfrombuffer

This got fixed with dougmoscrop/serverless-http#232

As serverless-express’s src/response.js is based on serverless-http (see ATTRIBUTION in line 1), this might just be a simple copy-paste :-)

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