Skip to content

Impossible to override default headers #471

@williamlian

Description

@williamlian

httpReq.Header.Add(headerKey, headerValue)

New headers are always "added" to the default one. This makes it impossible to override headers. For example, I have a default source header as "foo", but in my client code, I passed my header with source: bar. The result in this code will be source: foo, bar which will cause trouble if the remote endpoint checks for specific source. Can we have some mechanism to allow header override?

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