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

codec: separate mimetype for encoding and decoding #7

Open
dolmen opened this issue Feb 7, 2024 · 3 comments
Open

codec: separate mimetype for encoding and decoding #7

dolmen opened this issue Feb 7, 2024 · 3 comments

Comments

@dolmen
Copy link

dolmen commented Feb 7, 2024

This is necessary to remove hack for HTML encoding which is is not symmetrical.

@dolanor
Copy link
Owner

dolanor commented Feb 8, 2024

Do you mean because HTML codec has only encoding and HTML Forms codec only has decoding?

@dolmen
Copy link
Author

dolmen commented Feb 18, 2024

Yes. AcceptEncoder has hardcoded references to that specific codec.

if acceptHeader == "text/html" && edit {

@dolanor
Copy link
Owner

dolanor commented Feb 18, 2024

Yeah, there is some experimentation of content negociation still all over the place once I played with HTML page and forms. It bled a little more than what I wanted.
One day when I'm fresh and a clear mind, I'll refactor all of this, because it is messy.

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