holmesal / shortwave

2 stars 0 forks source link

Imgur links #130

Closed holmesal closed 10 years ago

holmesal commented 10 years ago

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:

image

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.

holmesal commented 10 years ago

moving to shortwave-web