mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2026-03-25 06:59:10 +00:00
2983: Java Feign client generator: HTTP header name should be named Accept not Accepts
This commit is contained in:
@@ -26,7 +26,7 @@ public interface {{classname}} extends ApiClient.Api {
|
||||
@RequestLine("{{httpMethod}} {{{path}}}{{#hasQueryParams}}?{{/hasQueryParams}}{{#queryParams}}{{baseName}}={{=<% %>=}}{<%paramName%>}<%={{ }}=%>{{#hasMore}}&{{/hasMore}}{{/queryParams}}")
|
||||
@Headers({
|
||||
"Content-type: {{vendorExtensions.x-contentType}}",
|
||||
"Accepts: {{vendorExtensions.x-accepts}}",{{#headerParams}}
|
||||
"Accept: {{vendorExtensions.x-accepts}}",{{#headerParams}}
|
||||
"{{paramName}}: {{=<% %>=}}{<%paramName%>}<%={{ }}=%>"{{#hasMore}},
|
||||
{{/hasMore}}{{/headerParams}}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user