Skip to content

Commit

Permalink
[Jira] Fix get_attachment_content() return the content as bytes ins…
Browse files Browse the repository at this point in the history
…tead of `str` (#1433)
  • Loading branch information
nitram509 authored Jul 18, 2024
1 parent 42ed0b0 commit 795705b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions atlassian/jira.py
Original file line number Diff line number Diff line change
Expand Up @@ -284,11 +284,11 @@ def get_attachment_content(self, attachment_id):
"""
Returns the content for an attachment
:param attachment_id: int
:return: json
:return: content as bytes
"""
base_url = self.resource_url("attachment")
url = "{base_url}/content/{attachment_id}".format(base_url=base_url, attachment_id=attachment_id)
return self.get(url)
return self.get(url, not_json_response=True)

def remove_attachment(self, attachment_id):
"""
Expand Down

0 comments on commit 795705b

Please sign in to comment.