Skip to content

Commit ccec3e4

Browse files
committed
Use lowercase for charsets #11741
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
1 parent 8c33aa4 commit ccec3e4

File tree

1 file changed

+1
-0
lines changed
  • jetty-core/jetty-http/src/main/java/org/eclipse/jetty/http

1 file changed

+1
-0
lines changed

jetty-core/jetty-http/src/main/java/org/eclipse/jetty/http/MimeTypes.java

+1
Original file line numberDiff line numberDiff line change
@@ -923,6 +923,7 @@ else if (' ' != b)
923923
public static class ContentTypeField extends PreEncodedHttpField
924924
{
925925
private final Type _type;
926+
926927
public ContentTypeField(MimeTypes.Type type)
927928
{
928929
this(type, type.toString());

0 commit comments

Comments
 (0)