mk6i / retro-aim-server

Revive classic AOL Instant Messenger (and ICQ) clients from the 2000s! https://discord.gg/2Xy4nF3Uh9
MIT License
132 stars 14 forks source link

Bug fix for non-gif buddy icons #62

Closed jgknight closed 2 weeks ago

jgknight commented 2 weeks ago

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

mk6i commented 2 weeks ago

🎉 🌮