mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-22 03:54:33 +02:00
8203850: java.net.http HTTP client should allow specifying Origin and Referer headers
Reviewed-by: chegar, dfuchs
This commit is contained in:
parent
55692eb0ca
commit
96b43418b5
3 changed files with 82 additions and 10 deletions
|
@ -133,9 +133,7 @@ public final class Utils {
|
|||
// A case insensitive TreeSet of strings.
|
||||
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"));
|
||||
"date", "expect", "from", "host", "upgrade", "via", "warning"));
|
||||
DISALLOWED_HEADERS_SET = Collections.unmodifiableSet(treeSet);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue