mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2024-11-22 19:00:01 +08:00
防呆设计
This commit is contained in:
parent
dd81497e5c
commit
76ae292ae7
@ -27,7 +27,7 @@ void HttpClient::sendRequest(const string &strUrl, float fTimeOutSec) {
|
||||
defaultPort = 443;
|
||||
isHttps = true;
|
||||
} else {
|
||||
auto strErr = StrPrinter << "非法的协议:" << protocol << endl;
|
||||
auto strErr = StrPrinter << "非法的http url:" << strUrl << endl;
|
||||
throw std::invalid_argument(strErr);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user