Athou/commafeed — pull request #184 by tlvince (2013-05-26 04:27:58+00:00)
Title: Retrieve favicons using protocol-relative URLs

If you are serving commafeed over https, many mixed content warnings are thrown
on the getfavicon requests, e.g.:

The page at https://commafeed.com/ displayed insecure content from
http://d.getfavicon.appspot.com/http%3A%2F%2Fwww.dailywritingtips.com?defaulticon=none.

However, simply removing 'http:' from getfavicon's iconUrl to give a
[protocol-relative url][1] causes some browsers (Chromium) to throw an 'Identity
not verified' error because you are using getfavicon's 'multiple domains'
feature.

Presumably, appspot.com's SSL certificate does not match sub-sub domain's and/or
Chromium has stricter SSL policies (the same thing works in Safari).

We can workaround that by dropping the multiple domain support and hence
removal of the 'firstLetterDomain' function. Hopefully there's not too much of
a performance degradation?

[1]: http://www.paulirish.com/2010/the-protocol-relative-url/