From e1dcc685877ae39a699be4244076472b9bdaaf60 Mon Sep 17 00:00:00 2001 From: Marc Miltenberger Date: Wed, 27 Apr 2022 14:39:35 +0200 Subject: [PATCH] Python: Add cookie name to cookie header (#11189) * Add cookie name to cookie header * Fix whitespace --- .../src/main/resources/python/api_client.mustache | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/openapi-generator/src/main/resources/python/api_client.mustache b/modules/openapi-generator/src/main/resources/python/api_client.mustache index c72873607448..f11b14d6d4d7 100644 --- a/modules/openapi-generator/src/main/resources/python/api_client.mustache +++ b/modules/openapi-generator/src/main/resources/python/api_client.mustache @@ -653,7 +653,7 @@ class ApiClient(object): def _apply_auth_params(self, headers, queries, resource_path, method, body, auth_setting): if auth_setting['in'] == 'cookie': - headers['Cookie'] = auth_setting['value'] + headers['Cookie'] = auth_setting['key'] + "=" + auth_setting['value'] elif auth_setting['in'] == 'header': if auth_setting['type'] != 'http-signature': headers[auth_setting['key']] = auth_setting['value']