yhirose 5 years ago
parent
commit
a50b7591ca
1 changed files with 2 additions and 0 deletions
  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;
     }
     }