mirror of
https://gitee.com/xia-chu/ZLMediaKit.git
synced 2026-05-20 08:47:50 +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