mirror of
https://github.com/yhirose/cpp-httplib
synced 2024-11-21 06:26:02 -07:00
Fix #714
This commit is contained in:
parent
bf8fc11b53
commit
a50b7591ca
1 changed files with 2 additions and 0 deletions
|
@ -6242,6 +6242,8 @@ inline Client::Client(const char *scheme_host_port,
|
|||
#else
|
||||
if (!scheme.empty() && scheme != "http") {
|
||||
#endif
|
||||
std::string msg = "'" + scheme + "' scheme is not supported.";
|
||||
throw std::invalid_argument(msg);
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue