Skip to content

Make yaws:accumulate_header/1 conforming to RFC #415

@leoliu

Description

@leoliu

Many headers allow you to sent as multiple headers with the same name for example, Vary, Cache-Control, Accept-Encoding, Set-Cookie etc etc. Not all of them are handled correctly.

I discovered this discrepancy while experimenting with the Vary header. In my case a request is passed through multiple functions. One function adds a Vary header for security reasons but the header is gone because a later function accidentally overrides it owing to yaws:accumulate_header/1's last-write-win semantics.

There is also the issue of not normalising the header names. For example, "Vary" and "vary" are different headers per Yaws.

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