MDL-26211 improve detection of https from _SERVER