forked from loafle/openapi-generator-original
Not creating "Accept:null" header for Java-Jersey2 generator (#11084)
* updated ApiClient.mustache for jersey2 * updated samples * corrected indentation * updated samples
This commit is contained in:
parent
98a28a075a
commit
361b593da2
@ -1190,7 +1190,12 @@ public class ApiClient{{#jsr310}} extends JavaTimeFormatter{{/jsr310}} {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Invocation.Builder invocationBuilder = target.request().accept(accept);
|
Invocation.Builder invocationBuilder;
|
||||||
|
if (accept != null) {
|
||||||
|
invocationBuilder = target.request().accept(accept);
|
||||||
|
} else {
|
||||||
|
invocationBuilder = target.request();
|
||||||
|
}
|
||||||
|
|
||||||
for (Entry<String, String> entry : cookieParams.entrySet()) {
|
for (Entry<String, String> entry : cookieParams.entrySet()) {
|
||||||
String value = entry.getValue();
|
String value = entry.getValue();
|
||||||
|
@ -1106,7 +1106,12 @@ public class ApiClient extends JavaTimeFormatter {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Invocation.Builder invocationBuilder = target.request().accept(accept);
|
Invocation.Builder invocationBuilder;
|
||||||
|
if (accept != null) {
|
||||||
|
invocationBuilder = target.request().accept(accept);
|
||||||
|
} else {
|
||||||
|
invocationBuilder = target.request();
|
||||||
|
}
|
||||||
|
|
||||||
for (Entry<String, String> entry : cookieParams.entrySet()) {
|
for (Entry<String, String> entry : cookieParams.entrySet()) {
|
||||||
String value = entry.getValue();
|
String value = entry.getValue();
|
||||||
|
@ -1106,7 +1106,12 @@ public class ApiClient extends JavaTimeFormatter {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Invocation.Builder invocationBuilder = target.request().accept(accept);
|
Invocation.Builder invocationBuilder;
|
||||||
|
if (accept != null) {
|
||||||
|
invocationBuilder = target.request().accept(accept);
|
||||||
|
} else {
|
||||||
|
invocationBuilder = target.request();
|
||||||
|
}
|
||||||
|
|
||||||
for (Entry<String, String> entry : cookieParams.entrySet()) {
|
for (Entry<String, String> entry : cookieParams.entrySet()) {
|
||||||
String value = entry.getValue();
|
String value = entry.getValue();
|
||||||
|
@ -1036,7 +1036,12 @@ public class ApiClient extends JavaTimeFormatter {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Invocation.Builder invocationBuilder = target.request().accept(accept);
|
Invocation.Builder invocationBuilder;
|
||||||
|
if (accept != null) {
|
||||||
|
invocationBuilder = target.request().accept(accept);
|
||||||
|
} else {
|
||||||
|
invocationBuilder = target.request();
|
||||||
|
}
|
||||||
|
|
||||||
for (Entry<String, String> entry : cookieParams.entrySet()) {
|
for (Entry<String, String> entry : cookieParams.entrySet()) {
|
||||||
String value = entry.getValue();
|
String value = entry.getValue();
|
||||||
|
@ -981,7 +981,12 @@ public class ApiClient extends JavaTimeFormatter {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Invocation.Builder invocationBuilder = target.request().accept(accept);
|
Invocation.Builder invocationBuilder;
|
||||||
|
if (accept != null) {
|
||||||
|
invocationBuilder = target.request().accept(accept);
|
||||||
|
} else {
|
||||||
|
invocationBuilder = target.request();
|
||||||
|
}
|
||||||
|
|
||||||
for (Entry<String, String> entry : cookieParams.entrySet()) {
|
for (Entry<String, String> entry : cookieParams.entrySet()) {
|
||||||
String value = entry.getValue();
|
String value = entry.getValue();
|
||||||
|
@ -1190,7 +1190,12 @@ public class ApiClient extends JavaTimeFormatter {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Invocation.Builder invocationBuilder = target.request().accept(accept);
|
Invocation.Builder invocationBuilder;
|
||||||
|
if (accept != null) {
|
||||||
|
invocationBuilder = target.request().accept(accept);
|
||||||
|
} else {
|
||||||
|
invocationBuilder = target.request();
|
||||||
|
}
|
||||||
|
|
||||||
for (Entry<String, String> entry : cookieParams.entrySet()) {
|
for (Entry<String, String> entry : cookieParams.entrySet()) {
|
||||||
String value = entry.getValue();
|
String value = entry.getValue();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user