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

Add html_utf8 content type. #2423

Merged
merged 4 commits into from Oct 26, 2021
Merged

Add html_utf8 content type. #2423

merged 4 commits into from Oct 26, 2021

Conversation

LukeMathWalker
Copy link
Contributor

@LukeMathWalker LukeMathWalker commented Oct 23, 2021

PR Type

Feature

PR Checklist

  • [ ] Tests for the changes have been added / updated.
  • Documentation comments have been added / updated.
  • A changelog entry has been made for the appropriate packages.
  • Format code with the latest stable rustfmt.
  • (Team) Label with affected crates and semver status.

Overview

Another convenient constructor for a very common content type.

@robjtede
Copy link
Member

Based on the plaintext constructor, maybe the html one should be changed to utf8 too.

@LukeMathWalker
Copy link
Contributor Author

That's an option as well - happy to amend the PR accordingly.

@robjtede
Copy link
Member

Yeah I think utf8 should be the default case. Especially in rust where Strings follow this convention.

@LukeMathWalker
Copy link
Contributor Author

Updated!

@robjtede robjtede added A-web project: actix-web B-semver-patch labels Oct 26, 2021
@robjtede robjtede merged commit 855e260 into actix:master Oct 26, 2021
@LukeMathWalker LukeMathWalker deleted the html-utf8 branch October 26, 2021 08:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-web project: actix-web B-semver-patch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants