Skip to content

Incorrect logic description in the HTTPHeaderName section #4480

@bazilmarkov

Description

@bazilmarkov

What would you like to be added:

Documentation for the HTTPHeaderName states that

If multiple entries specify equivalent header names, the first entry with an equivalent name MUST be considered for a match.

Actual behavior is that filters specifying equivalent header names are invalid, for example:

requestHeaderModifier:
  add:
    - name: my-header-name
      value: my-header-value
    - name: my-header-name
      value: my-header-value2

So, if multiple entries specify equivalent header names, the respective HTTP/GRPCRoute will fail with Duplicate value: map[string]interface {}{"name":"my-header-name"}, so I assume the documentation should be aligned with this description

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/documentationCategorizes issue or PR as related to documentation.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions