yhirose 5 年之前
父節點
當前提交
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
 #else
     if (!scheme.empty() && scheme != "http") {
     if (!scheme.empty() && scheme != "http") {
 #endif
 #endif
+      std::string msg = "'" + scheme + "' scheme is not supported.";
+      throw std::invalid_argument(msg);
       return;
       return;
     }
     }