Skip to content

Conversation

@jgknight
Copy link
Contributor

Summary

The mgmt api endpoint assumed image/gif content type. Instead try our best to detect it.

If the content type can't be determined then it defaults to application/octet-stream

Testing

I tested by uploading gif and jpg buddy icons via pidgin and I'm able to fetch them from the api. PNG did not work for me, but it also didn't display in pidgin, so that format may not be supported.

Unit tests pass

The mgmt api endpoint assumed image/gif content type. Instead try our best to detect it.
@mk6i mk6i merged commit a85a4b3 into mk6i:main Aug 30, 2024
@mk6i
Copy link
Owner

mk6i commented Aug 30, 2024

🎉 🌮

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants