Skip to content

net/textproto: Customize to call the function 'CanonicalMIMEHeaderKey' #53304

Description

@angYuHao

What version of Go are you using (go version)?

$ go version
go version go1.17.3 windows/amd64

Does this issue reproduce with the latest release?

yes

The key of token in the request header of many servers is nonstandard. When I want to proxy the server restful api, the function 'CanonicalMIMEHeaderKey' cause me trouble
The token keyword carried by my request is 'AuthToken'
After the function CanonicalMIMEHeaderKey, it becomes 'Authtoken'
the server can't identify 'Authtoken'

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions