Skip to content

Commit

Permalink
Fixes #5104 - AbstractProxyServlet include incorrect protocol version…
Browse files Browse the repository at this point in the history
… in Via header when accessed over H2.

Fixed javadocs.

Signed-off-by: Simone Bordet <simone.bordet@gmail.com>
  • Loading branch information
sbordet committed Aug 13, 2020
1 parent 79d340f commit faea7c9
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions jetty-http/src/main/java/org/eclipse/jetty/http/HttpFields.java
Expand Up @@ -103,7 +103,7 @@ public HttpFields(HttpFields fields)
* <p>This method can be used to {@link #put(HttpField) put} a new field (or blindly replace its value):</p>
* <pre>
* httpFields.computeField("X-New-Header",
* (name, fields) -> new HttpField(name, "NewValue"));
* (name, fields) -&gt; new HttpField(name, "NewValue"));
* </pre>
*
* <p>This method can be used to coalesce many fields into one:</p>
Expand All @@ -116,15 +116,15 @@ public HttpFields(HttpFields fields)
* User-Agent: Jetty
*
* // Computation:
* httpFields.computeField("Cookie", (name, fields) ->
* httpFields.computeField("Cookie", (name, fields) -&gt;
* {
* // No cookies, nothing to do.
* if (fields == null)
* return null;
*
* // Coalesces all cookies.
* String coalesced = fields.stream()
* .flatMap(field -> Stream.of(field.getValues()))
* .flatMap(field -&gt; Stream.of(field.getValues()))
* .collect(Collectors.joining(", "));
*
* // Returns a single Cookie header with all cookies.
Expand All @@ -140,7 +140,7 @@ public HttpFields(HttpFields fields)
*
* <p>This method can be used to replace a field:</p>
* <pre>
* httpFields.computeField("X-Length", (name, fields) ->
* httpFields.computeField("X-Length", (name, fields) -&gt;
* {
* if (fields == null)
* return null;
Expand All @@ -158,7 +158,7 @@ public HttpFields(HttpFields fields)
*
* <p>This method can be used to remove a field:</p>
* <pre>
* httpFields.computeField("Connection", (name, fields) -> null);
* httpFields.computeField("Connection", (name, fields) -&gt; null);
* </pre>
*
* @param name the HTTP header name
Expand Down

0 comments on commit faea7c9

Please sign in to comment.