fix(core): protocol should always be http or https