Skip to content

Commit 795705b

Browse files
authored
[Jira] Fix get_attachment_content() return the content as bytes instead of str (atlassian-api#1433)
1 parent 42ed0b0 commit 795705b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

atlassian/jira.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -284,11 +284,11 @@ def get_attachment_content(self, attachment_id):
284284
"""
285285
Returns the content for an attachment
286286
:param attachment_id: int
287-
:return: json
287+
:return: content as bytes
288288
"""
289289
base_url = self.resource_url("attachment")
290290
url = "{base_url}/content/{attachment_id}".format(base_url=base_url, attachment_id=attachment_id)
291-
return self.get(url)
291+
return self.get(url, not_json_response=True)
292292

293293
def remove_attachment(self, attachment_id):
294294
"""

0 commit comments

Comments
 (0)