MrRefactoring / jira.js

A JavaScript/TypeScript wrapper for the JIRA Cloud, Service Desk and Agile REST API
https://mrrefactoring.github.io/jira.js/
MIT License
349 stars 46 forks source link

getAvatarImageByID contentType unavailable #271

Closed dreamboyx1 closed 8 months ago

dreamboyx1 commented 11 months ago

A call to the version3Client.avatars.getAvatarImageByID can return binary data that represents a number of different image formats that do not necessarily represent the desire format specified in the call params. It would be super helpful if the client were able to return the content-type header mime type. Or, perhaps there is a way to access the headers?

Otherwise, I'm stuck trying to figure out the image type based on the binary data.

MrRefactoring commented 8 months ago

Will be released in v3.0.0