NETWORKING: Properly process TLS errors.
Now, when HTTPS is not supported, we will indicate it to the user.
This commit is contained in:
parent
938212c6f1
commit
a670a17480
3 changed files with 27 additions and 6 deletions
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue