Skip to content

Commit

Permalink
update restricted headers in jdk11 client implementation (#2366)
Browse files Browse the repository at this point in the history
* update restricted headers in jdk11 client implementation

* update copyright header
  • Loading branch information
derklaro authored Apr 2, 2024
1 parent 5080b2c commit f1c3ede
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions java11/src/main/java/feign/http2client/Http2Client.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2012-2023 The Feign Authors
* Copyright 2012-2024 The Feign Authors
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
* in compliance with the License. You may obtain a copy of the License at
Expand Down Expand Up @@ -203,8 +203,7 @@ private Builder newRequestBuilder(Request request, Options options) throws URISy
static {
// A case insensitive TreeSet of strings.
final TreeSet<String> treeSet = new TreeSet<>(String.CASE_INSENSITIVE_ORDER);
treeSet.addAll(Set.of("connection", "content-length", "date", "expect", "from", "host",
"origin", "referer", "upgrade", "via", "warning"));
treeSet.addAll(Set.of("connection", "content-length", "expect", "host", "upgrade"));
DISALLOWED_HEADERS_SET = Collections.unmodifiableSet(treeSet);
}

Expand Down

0 comments on commit f1c3ede

Please sign in to comment.