[Java][RESTEasy] Fixed setting of custom headers (#599)

Fixed header generation. Previously the key was used as value parameter.
This commit is contained in:
Marvin 2018-07-19 11:55:01 +02:00 committed by Jérémie Bresson
parent 76160b53c7
commit 52cd17ecc7
2 changed files with 2 additions and 2 deletions

View File

@ -638,7 +638,7 @@ public class ApiClient {
for (Entry<String, String> defaultHeaderEnrty: defaultHeaderMap.entrySet()) {
if (!headerParams.containsKey(defaultHeaderEnrty.getKey())) {
String value = defaultHeaderEnrty.getKey();
String value = defaultHeaderEnrty.getValue();
if (value != null) {
invocationBuilder = invocationBuilder.header(defaultHeaderEnrty.getKey(), value);
}

View File

@ -633,7 +633,7 @@ public class ApiClient {
for (Entry<String, String> defaultHeaderEnrty: defaultHeaderMap.entrySet()) {
if (!headerParams.containsKey(defaultHeaderEnrty.getKey())) {
String value = defaultHeaderEnrty.getKey();
String value = defaultHeaderEnrty.getValue();
if (value != null) {
invocationBuilder = invocationBuilder.header(defaultHeaderEnrty.getKey(), value);
}