Skip to content
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

Entity.WriteTo never encodes the body #85

Closed
emersion opened this issue Apr 25, 2020 · 1 comment
Closed

Entity.WriteTo never encodes the body #85

emersion opened this issue Apr 25, 2020 · 1 comment
Labels

Comments

@emersion
Copy link
Owner

Entity.WriteTo unconditionally copies the decoded body to the io.Writer. If the header has a Content-Transfer-Encoding field, the resulting message will be malformed.

Related: #84

@emersion emersion added the bug label Apr 25, 2020
@emersion
Copy link
Owner Author

Eh, actually, no. message.Writer is used and will re-encode the body properly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant