Skip to content

HttpMessage._add_default_headers should not overwrite existing headers #216

@wolfhechel

Description

@wolfhechel

Simply using setdefault should suffice rather than extend.

This is crucial for custom protocol extensions where the Server / User-Agent headers is used to
notify clients/servers about capabilities.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions