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

Posting articles discard original headers #9

Open
mildred opened this issue Jul 26, 2018 · 1 comment
Open

Posting articles discard original headers #9

mildred opened this issue Jul 26, 2018 · 1 comment

Comments

@mildred
Copy link

mildred commented Jul 26, 2018

When handling a POST request with the NNTP server library, the headers are parsed and the original headers are discarded.

In particular, the header order is discarded as the parsed headers are stored in a map that doesn't keep the order.

It would be great to have access to unparsed posted message. Once the message is stored in a buffer, we can then parse at will the headers afterwards. I can prepare a pull request for that.

@dustin
Copy link
Owner

dustin commented Aug 5, 2018

The problem seems to be next/textproto's MIMEHeader type. Not sure why it was a map, but it's not surprising nobody can figure out how to handle headers.

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

No branches or pull requests

2 participants