Fix recog. problem of http/https