From 64e7389f81ebfda66c20e62920bf231669e6ebaf Mon Sep 17 00:00:00 2001 From: Marc Serrat Date: Thu, 13 Oct 2022 11:35:57 +0200 Subject: [PATCH] Wrong header when downloading localization files --- connect/cli/plugins/shared/export.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/connect/cli/plugins/shared/export.py b/connect/cli/plugins/shared/export.py index 93bfc16d..7c8e91e1 100644 --- a/connect/cli/plugins/shared/export.py +++ b/connect/cli/plugins/shared/export.py @@ -22,7 +22,7 @@ def _get_translation_workbook(api_url, api_key, translation_id, verbose=False): attributes_path = client.ns('localization').translations[translation_id].attributes.path url = f'{api_url}/{attributes_path}' response = logged_request('GET', url, verbose, headers={ - 'Content-type': EXCEL_CONTENT_TYPE, **get_headers(api_key), + 'accept': EXCEL_CONTENT_TYPE, **get_headers(api_key), }) if response.status_code != 200: raise ClientError(status_code=response.status_code)