Skip to content

Commit

Permalink
Issue #10500 - Changes from review
Browse files Browse the repository at this point in the history
  • Loading branch information
joakime committed Sep 14, 2023
1 parent 85cc1f2 commit f75075d
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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<HttpHeader> RAW_HEADERS =
private static final EnumSet<HttpHeader> SINGLE_VALUE_HEADERS =
EnumSet.of(
HttpHeader.AUTHORIZATION,
HttpHeader.CONTENT_LENGTH,
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit f75075d

Please sign in to comment.