You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
Maybe a method to normalize the header would be more efficient, than running through all
the keys on Get.
// Canonical returns the header with all keys converted to their canonical form.
func (h MIMEHeader) Canonical() MIMEHeader
The text was updated successfully, but these errors were encountered: