We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
bytes
str
1 parent 42ed0b0 commit 795705bCopy full SHA for 795705b
atlassian/jira.py
@@ -284,11 +284,11 @@ def get_attachment_content(self, attachment_id):
284
"""
285
Returns the content for an attachment
286
:param attachment_id: int
287
- :return: json
+ :return: content as bytes
288
289
base_url = self.resource_url("attachment")
290
url = "{base_url}/content/{attachment_id}".format(base_url=base_url, attachment_id=attachment_id)
291
- return self.get(url)
+ return self.get(url, not_json_response=True)
292
293
def remove_attachment(self, attachment_id):
294
0 commit comments