NETWORKING: Properly process TLS errors.

Now, when HTTPS is not supported, we will indicate it to the user.
This commit is contained in:
Eugene Sandulenko 2022-10-10 22:36:40 +02:00
parent 938212c6f1
commit a670a17480
No known key found for this signature in database
GPG key ID: 014D387312D34F08
3 changed files with 27 additions and 6 deletions

View file

@ -183,6 +183,12 @@ void SessionRequest::handle() {
}
if (_stream->eos()) {
if (_stream->hasError()) {
ErrorResponse error(this, false, true, Common::String::format("TLS stream response code is not CURLE_OK OK: %s", _stream->getError()), _stream->getErrorCode());
finishError(error);
return;
}
finishSuccess();
}
}