fix bug in check http/https scheme