mirror of
https://github.com/valitydev/openapi-generator.git
synced 2024-11-07 02:55:19 +00:00
[Java][RESTEasy] Fixed setting of custom headers (#599)
Fixed header generation. Previously the key was used as value parameter.
This commit is contained in:
parent
76160b53c7
commit
52cd17ecc7
@ -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);
|
||||
}
|
||||
|
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user