Repository navigation
fix: return stdlib net/textproto.MIMEHeader from DecodeHeaders - #420
Conversation
DecodeHeaders returned internal textproto.MIMEHeader instead of net/textproto.MIMEHeader. Update the return type and callers to standard library net/textproto.MIMEHeader. Also allocate an independent slice for headerList to prevent mutating package-level defaultHeadersList. Fixes jhillyerd#405
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info
📝 Walkthrough
Merge Risk: ⚪ Minimal · up to The return-type change appears ready to merge after normal checks. Pre-merge checks |
|
Fixes #405
Summary
DecodeHeaders returned github.com/jhillyerd/enmime/v2/internal/textproto.MIMEHeader instead of standard library net/textproto.MIMEHeader. Because the returned type resided in an internal package, external packages could not reference the type name directly.
Changes
Summary by CodeRabbit