yhirose %!s(int64=5) %!d(string=hai) anos
pai
achega
a50b7591ca
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      httplib.h

+ 2 - 0
httplib.h

@@ -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;
     }