Sk1erLLC / Patcher

A Forge mod full of Vanilla bug fixes, Quality of Life improvements, and performance enhancements.
Other
232 stars 60 forks source link

Fix Imgur links not being previewed and extra extension sometimes being added #169

Closed GamingGeek closed 9 months ago

GamingGeek commented 9 months ago

Imgur recently changed their website so that the direct links would redirect to the main website unless the Referer header was set to https://imgur.com/

This PR adds that header if the URL contains imgur and also prevents a duplicate .png extension being added to direct links (this didn't appear to break anything, it just bugged me when I was logging the URL)