avatars-api-middleware icon indicating copy to clipboard operation
avatars-api-middleware copied to clipboard

extensions affect the returned avatar

Open rylnd opened this issue 6 years ago • 1 comments

We previously had code in place that made the requests /avatars/foo.png and /avatars/foo "the same;" it was accomplished by simply stripping the extension out of the identifier. I removed this code because I thought it was silly, but I realize now that it's really a stopgap for #19.

Avatar-wise, the extension should not affect the result. Long-term, it should affect the content-type of the response.

The main reason to fix this sooner rather than later is that the .png toggle on the avatars site now behaves "weirdly," in that it actually changes the avatar being displayed.

rylnd avatar Apr 29 '19 21:04 rylnd

Yeah the URL on the website gives a .png but the image displayed is without the .png

qaisjp avatar Aug 10 '19 23:08 qaisjp