diff --git a/modules/swagger-codegen/src/main/resources/typescript-fetch/api.mustache b/modules/swagger-codegen/src/main/resources/typescript-fetch/api.mustache index 476a1c767fd..86d0cbe8dca 100644 --- a/modules/swagger-codegen/src/main/resources/typescript-fetch/api.mustache +++ b/modules/swagger-codegen/src/main/resources/typescript-fetch/api.mustache @@ -216,7 +216,7 @@ export const {{classname}}FetchParamCreator = function (configuration?: Configur localVarHeaderParameter['Content-Type'] = 'application/json'; {{/consumes}} {{#consumes.0}} - localVarHeaderParameter['Content-Type'] = '{{mediaType}}'; + localVarHeaderParameter['Content-Type'] = '{{{mediaType}}}'; {{/consumes.0}} {{/bodyParam}}