yhirose před 5 roky
rodič
revize
a50b7591ca
1 změnil soubory, kde provedl 2 přidání a 0 odebrání
  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;
     }