From a50b7591ca3e2a2196dd4f38823c01eddced830c Mon Sep 17 00:00:00 2001 From: yhirose Date: Wed, 21 Oct 2020 13:02:33 -0400 Subject: [PATCH] Fix #714 --- httplib.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/httplib.h b/httplib.h index b00cd5f..9bfe87e 100644 --- a/httplib.h +++ b/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; }