-
Notifications
You must be signed in to change notification settings - Fork 122
textproto: Add Header.AddRaw #66
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Codecov Report
@@ Coverage Diff @@
## master #66 +/- ##
=======================================
+ Coverage 61.98% 62% +0.02%
=======================================
Files 15 15
Lines 847 858 +11
=======================================
+ Hits 525 532 +7
- Misses 278 280 +2
- Partials 44 46 +2
Continue to review full report at Codecov.
|
|
Can we make |
I do not see any reason to use []byte over string, but whatever. Done. |
I should've explained my rationale se we can discuss:
|
textproto/header.go
Outdated
| panic("textproto: Header.AddRaw: missing colon") | ||
| } | ||
| k := textproto.CanonicalMIMEHeaderKey(string(trim(kv[:colon]))) | ||
| v := kv[colon:] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We need to un-fold header lines here
emersion
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks!
See foxcpp/maddy#187.