Don't crash if protocol is missing / not known.
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
6225f4815b
commit
e015ec3f3f
|
@ -152,6 +152,10 @@ namespace remwharead
|
|||
session = make_unique<HTTPClientSession>(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);
|
||||
|
|
Loading…
Reference in New Issue
Block a user