Skip to content

Commit

Permalink
Merge pull request #167 from cloudblue/wrong-header-download-localiza…
Browse files Browse the repository at this point in the history
…tion

Wrong header when downloading localization files
  • Loading branch information
marcserrat authored Oct 13, 2022
2 parents a0273f2 + 64e7389 commit d79f5c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion connect/cli/plugins/shared/export.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit d79f5c2

Please sign in to comment.