Find `http` config using a regex search of `^\s*https*$` and protect them against formatting. Issue gh-8945