mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2024-11-26 04:31:37 +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;
|
defaultPort = 443;
|
||||||
isHttps = true;
|
isHttps = true;
|
||||||
} else {
|
} else {
|
||||||
auto strErr = StrPrinter << "非法的协议:" << protocol << endl;
|
auto strErr = StrPrinter << "非法的http url:" << strUrl << endl;
|
||||||
throw std::invalid_argument(strErr);
|
throw std::invalid_argument(strErr);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user