yhirose 5 лет назад
Родитель
Сommit
a50b7591ca
1 измененных файлов с 2 добавлено и 0 удалено
  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;
     }