Skip to content

Receiver.accept() should sanitize headers #237

@lance

Description

@lance

Most of the time users will be using the Receiver in some sort of web framework that automatically sanitizes headers before user code accesses them. That's not always the case, though. Because the Receiver.acccept() method doesn't sanitize, it won't be able to detect a structured event if the content type header is Content-Type instead of content-type.

https://github.com/cloudevents/sdk-javascript/blob/master/src/transport/receiver.ts#L62

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