You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if you check that redirected url, it uses http instead of https 🤨
but the API does that for every url so i do not understand this behavior. perhaps i would if the http:// address, in this case http://www.pluimen.nl, would lead to a 404 or whatever error, but it gets redirected as expected to https://www.pluimen.nl
of course you cannot do anything about this, but then i wondered if the API has some sort of parameter which can set/force https.
there is none it seems, the whole API is undocumented already anyway.
nice alternative indeed, but then i force everything to https, not sure if that will ever lead to issues (although http addresses are ver rare and should be avoided anyway).
i like the placeholders idea, let me play with that! maybe i can code it myself and create a pull request when done.
thanks again
hi, i have this url; https://www.pluimen.nl which has a (regular) favicon.
var hostname = GetValidHost(url);
rips of the https part and only the domain is passed in the next lines of code
providerURL
has a final value of https://www.google.com/s2/favicons?domain=www.pluimen.nl&sz=128
that address gets redirected to
https://t0.gstatic.com/faviconV2?client=SOCIAL&type=FAVICON&fallback_opts=TYPE,SIZE,URL&url=http://www.pluimen.nl&size=128
which leads to this default broken/not exiting pic;
if you check that redirected url, it uses http instead of https 🤨
but the API does that for every url so i do not understand this behavior. perhaps i would if the http:// address, in this case http://www.pluimen.nl, would lead to a 404 or whatever error, but it gets redirected as expected to https://www.pluimen.nl
then i just replaced the http by https
(showing the 16 pixel size here for clarity)
https://t0.gstatic.com/faviconV2?client=SOCIAL&type=FAVICON&fallback_opts=TYPE,SIZE,URL&url=https://www.pluimen.nl&size=128
it leads to
of course you cannot do anything about this, but then i wondered if the API has some sort of parameter which can set/force https.
there is none it seems, the whole API is undocumented already anyway.
but then i tried the following (added the protocol to the domain param);
https://www.google.com/s2/favicons?domain=https://www.pluimen.nl&sz=128
and that gets redirected to
https://t0.gstatic.com/faviconV2?client=SOCIAL&type=FAVICON&fallback_opts=TYPE,SIZE,URL&url=https://www.pluimen.nl&size=128
so that way the https part gets preserved 🥳
so would it be possible to change this? so prefixing the final value of the domain parameter with the http(s):// protocol part.
thanks a lot!
regards Eddict
The text was updated successfully, but these errors were encountered: