Skip to content

Commit bd39f5e

Browse files
committed
Merge branch 'jspark' of https://github.com/omelet-ai/openapi-generator into omelet-ai-jspark
2 parents 69da1ea + 398bcd6 commit bd39f5e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

modules/openapi-generator/src/main/resources/typescript-axios/apiInner.mustache

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -200,6 +200,9 @@ export const {{classname}}AxiosParamCreator = function (configuration?: Configur
200200
{{/consumes.0}}
201201
202202
{{/bodyParam}}
203+
{{#hasProduces}}
204+
localVarHeaderParameter['Accept'] = {{#produces}}'{{{mediaType}}}'{{^-last}}; {{/-last}}{{/produces}};
205+
{{/hasProduces}}
203206
{{#headerParams}}
204207
{{#isArray}}
205208
if ({{paramName}}) {

0 commit comments

Comments
 (0)