weirdness to make wms work from https.