Currently, the URL http://imgur.com/TAROETF won't match anything, although it's the default share link that imgur gives you.
Later, it will match the webpage (when we have that matcher). Headers return a content-type of text/html:
To handle imgur links properly, we need to change http://imgur.com to http://i.imgur.com to make http://i.imgur.com/TAROETF, and we should probably add a .png for good measure (so it goes through our image/gif matcher without needing to make a request to check header content type).
Easy enough, but bad in that it's a hack specifically for the imgur service.
Currently, the URL http://imgur.com/TAROETF won't match anything, although it's the default share link that imgur gives you.
Later, it will match the webpage (when we have that matcher). Headers return a content-type of text/html:
To handle imgur links properly, we need to change
http://imgur.com
tohttp://i.imgur.com
to makehttp://i.imgur.com/TAROETF
, and we should probably add a .png for good measure (so it goes through our image/gif matcher without needing to make a request to check header content type).Easy enough, but bad in that it's a hack specifically for the imgur service.