From f75075df65070dd81f5529077cf28e955bbfae00 Mon Sep 17 00:00:00 2001 From: Joakim Erdfelt Date: Thu, 14 Sep 2023 10:16:44 -0500 Subject: [PATCH] Issue #10500 - Changes from review --- .../org/eclipse/jetty/http/spi/JettyHttpExchangeDelegate.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/jetty-core/jetty-http-spi/src/main/java/org/eclipse/jetty/http/spi/JettyHttpExchangeDelegate.java b/jetty-core/jetty-http-spi/src/main/java/org/eclipse/jetty/http/spi/JettyHttpExchangeDelegate.java index 54f5b56bcd9c..ae9132129067 100644 --- a/jetty-core/jetty-http-spi/src/main/java/org/eclipse/jetty/http/spi/JettyHttpExchangeDelegate.java +++ b/jetty-core/jetty-http-spi/src/main/java/org/eclipse/jetty/http/spi/JettyHttpExchangeDelegate.java @@ -42,7 +42,7 @@ public class JettyHttpExchangeDelegate extends HttpExchange /** * Set of headers that RFC9110 says will not have a value list */ - private static final EnumSet RAW_HEADERS = + private static final EnumSet SINGLE_VALUE_HEADERS = EnumSet.of( HttpHeader.AUTHORIZATION, HttpHeader.CONTENT_LENGTH, @@ -95,7 +95,7 @@ public Headers getRequestHeaders() HttpHeader header = field.getHeader(); - if (header == null || !RAW_HEADERS.contains(header)) + if (header == null || !SINGLE_VALUE_HEADERS.contains(header)) { // Using raw QuotedCSV here to preserve quotes (which HttpField.getValues() doesn't do) QuotedCSV quotedCSV = new QuotedCSV(true, rawValue);