Google's AppEngine ImagesService by default returns non-secure (http) URLs for images. It would be good if it had a methoed that would generate secure (https) URLs. For example, getServingUrl
could be complemented by getSecureServingUrl
.
A (less then adequate) workaround is to simply replace http://
with https://
in the URL. This works, but since it is undocumented, it could presumably stop working at any time. For example:
url.replaceAll("^http", "https")
would work.
getServingUrl method already allows you to specify "secure" in ServingUrlOptions.