Skip to content

Commit

Permalink
Use lowercase for charsets #11741
Browse files Browse the repository at this point in the history
Fix #11741 as per the WhatTFWG recommendations, use lower case for charset names.
Took the opportunity for some minor optimizations:
 + use the already made HttpField instance in MimeTypes.Type rather than create a new one in the HttpParser.CACHE
 + keep the MimeType.Type associated with the pre encoded Content-Type fields
  • Loading branch information
gregw committed Oct 4, 2024
1 parent 8c33aa4 commit ccec3e4
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -923,6 +923,7 @@ else if (' ' != b)
public static class ContentTypeField extends PreEncodedHttpField
{
private final Type _type;

public ContentTypeField(MimeTypes.Type type)
{
this(type, type.toString());
Expand Down

0 comments on commit ccec3e4

Please sign in to comment.