Skip to content

Canonic header field capitalization does not work with all existing headers titles out of the box #440

Open
@johnd0e

Description

@johnd0e

The issue is that the list in headers.lua is finite and cannot accommodate all possible header values. For instance, it does not include the commonly used header "Origin." I understand that keeping this list updated is challenging, especially given the existence of headers like "X-*-*."

Currently, the options are either to ignore this limitation (as most services handle lower-cased headers well) or to manage the headers manually.

My suggestion is to avoid storing headers altogether and instead normalize them on-the-fly. The existing socket.headers table could remain in place and serve as a cache.

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