Skip to content

Receiver accept() method modifies its input parameter. #230

@matejvasek

Description

@matejvasek

The receiver may destroy input payload.
For instance after calling receiver.accept(response.headers, response.data) the data member may end up as empty object.

https://github.com/cloudevents/sdk-javascript/blob/fba3294ce04a30be0e5ab551a1fa01727dc8d1f8/src/lib/bindings/http/validation/structured.js

Metadata

Metadata

Assignees

No one assigned

    Labels

    type/bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions