diff --git a/src/lib/uri.cpp b/src/lib/uri.cpp index 25d3e86..da8100d 100644 --- a/src/lib/uri.cpp +++ b/src/lib/uri.cpp @@ -152,6 +152,10 @@ namespace remwharead session = make_unique(poco_uri.getHost(), poco_uri.getPort()); } + else + { + throw Poco::Exception("Protocol not supported."); + } HTTPRequest request(method, path, HTTPMessage::HTTP_1_1); request.set("User-Agent", string("remwharead/") + global::version);