diff --git a/modules/openapi-generator/src/main/resources/cpp-qt5-client/api-body.mustache b/modules/openapi-generator/src/main/resources/cpp-qt5-client/api-body.mustache index eec363c20d91..ff8137cc23dd 100644 --- a/modules/openapi-generator/src/main/resources/cpp-qt5-client/api-body.mustache +++ b/modules/openapi-generator/src/main/resources/cpp-qt5-client/api-body.mustache @@ -101,7 +101,7 @@ void {{/isContainer}}{{/bodyParams}} {{#headerParams}} if ({{paramName}} != nullptr) { - input.headers.insert("{{baseName}}", "{{paramName}}"); + input.headers.insert("{{baseName}}", {{paramName}}); } {{/headerParams}}