Skip to content

Commit 357b75b

Browse files
authored
update restricted headers in jdk11 client implementation (#2366)
* update restricted headers in jdk11 client implementation * update copyright header
1 parent 797d267 commit 357b75b

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

java11/src/main/java/feign/http2client/Http2Client.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2012-2023 The Feign Authors
2+
* Copyright 2012-2024 The Feign Authors
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
55
* in compliance with the License. You may obtain a copy of the License at
@@ -203,8 +203,7 @@ private Builder newRequestBuilder(Request request, Options options) throws URISy
203203
static {
204204
// A case insensitive TreeSet of strings.
205205
final TreeSet<String> treeSet = new TreeSet<>(String.CASE_INSENSITIVE_ORDER);
206-
treeSet.addAll(Set.of("connection", "content-length", "date", "expect", "from", "host",
207-
"origin", "referer", "upgrade", "via", "warning"));
206+
treeSet.addAll(Set.of("connection", "content-length", "expect", "host", "upgrade"));
208207
DISALLOWED_HEADERS_SET = Collections.unmodifiableSet(treeSet);
209208
}
210209

0 commit comments

Comments
 (0)