the original-author forgot to judge  whether ssl