Fixed https protocol mismatch issue