Skip to content

Conversation

@Fdawgs
Copy link
Member

@Fdawgs Fdawgs commented Nov 18, 2024

Whilst the content-type response header is case-insensitive, lowercase is preferred, as per RFC 9110 Section 8.3.1.

It's very rare to see any sites using uppercase anymore.

Checklist

Copy link
Member

@mcollina mcollina left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@Fdawgs
Copy link
Member Author

Fdawgs commented Nov 18, 2024

I've noticed in that RFC it also states that no whitespace is also preferred, so text/plain;charset=utf-8 over text/plain; charset=utf-8. Is that also worth changing here?

@mcollina mcollina merged commit 6f078bb into master Nov 18, 2024
16 checks passed
@Eomm Eomm deleted the ref/charset branch November 18, 2024 16:45
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

Successfully merging this pull request may close these issues.

3 participants