Fix a bug about input url is not http protocol