Skip to content

Commit ae8a4b9

Browse files
jansupolsenivam
authored andcommitted
Fix ext\proxy-client for JDK 8
Signed-off-by: jansupol <[email protected]>
1 parent f8ad0ca commit ae8a4b9

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

ext/proxy-client/src/main/java/org/glassfish/jersey/client/proxy/RequestParameters.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2012, 2021 Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2012, 2022 Oracle and/or its affiliates. All rights reserved.
33
*
44
* This program and the accompanying materials are made available under the
55
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -61,7 +61,8 @@ class RequestParameters {
6161
RequestParameters(final WebTarget newTarget, final MultivaluedMap<String, Object> headers,
6262
final List<Cookie> cookies, final Form form) {
6363

64-
this.headers = new MultivaluedHashMap<>(headers);
64+
this.headers = new MultivaluedHashMap<>();
65+
this.headers.putAll(headers);
6566
this.cookies = new LinkedList<>(cookies);
6667
this.form = new Form();
6768
this.form.asMap().putAll(form.asMap());

0 commit comments

Comments
 (0)