Skip to content

Commit bbdda58

Browse files
authored
update restricted headers in jdk11 client implementation (#2366)
* update restricted headers in jdk11 client implementation * update copyright header
1 parent fac35e9 commit bbdda58

1 file changed

Lines changed: 2 additions & 14 deletions

File tree

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

Lines changed: 2 additions & 14 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
@@ -204,19 +204,7 @@ private Builder newRequestBuilder(Request request, Options options) throws URISy
204204
static {
205205
// A case insensitive TreeSet of strings.
206206
final TreeSet<String> treeSet = new TreeSet<>(String.CASE_INSENSITIVE_ORDER);
207-
treeSet.addAll(
208-
Set.of(
209-
"connection",
210-
"content-length",
211-
"date",
212-
"expect",
213-
"from",
214-
"host",
215-
"origin",
216-
"referer",
217-
"upgrade",
218-
"via",
219-
"warning"));
207+
treeSet.addAll(Set.of("connection", "content-length", "expect", "host", "upgrade"));
220208
DISALLOWED_HEADERS_SET = Collections.unmodifiableSet(treeSet);
221209
}
222210

0 commit comments

Comments
 (0)