Skip to content

net/textproto: mime header Get expects canonical header form #6252

Description

@eaigner
If a textproto.MIMEHeader is initialized from a source where header keys are not
canonical, Get won't work on those keys.

  http://play.golang.org/p/_yeMZaJdZv

I suggest comparing the keys using strings.EqualFold instead. It is quite common that
headers are not in their canonical form.

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