From 8d2d6ff340a820b5f05c70d68a7ae9b177018d7c Mon Sep 17 00:00:00 2001 From: Arturo Bernal Date: Mon, 23 Sep 2024 22:07:09 +0200 Subject: [PATCH] Add missing WILDCAR --- .../src/main/java/org/apache/hc/core5/http/ContentType.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/httpcore5/src/main/java/org/apache/hc/core5/http/ContentType.java b/httpcore5/src/main/java/org/apache/hc/core5/http/ContentType.java index 13df104de..9ce5121bb 100644 --- a/httpcore5/src/main/java/org/apache/hc/core5/http/ContentType.java +++ b/httpcore5/src/main/java/org/apache/hc/core5/http/ContentType.java @@ -193,7 +193,10 @@ public final class ContentType implements Serializable { * @since 5.1 */ public static final ContentType TEXT_EVENT_STREAM = create( - "text/event-stream", StandardCharsets.UTF_8, true); + "text/event-stream", StandardCharsets.UTF_8); + + public static final ContentType WILDCARD = create( + "*/*", (Charset) null, true); /** * An empty immutable {@code NameValuePair} array.