Skip to content
This repository was archived by the owner on Jul 9, 2023. It is now read-only.

beta #724

Merged
merged 2 commits into from
Dec 27, 2019
Merged

beta #724

Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/Titanium.Web.Proxy/Helpers/HttpServerStream.cs
Original file line number Diff line number Diff line change
Expand Up @@ -39,15 +39,15 @@ internal async ValueTask<ResponseStatusInfo> ReadResponseStatus(CancellationToke
{
// is this really possible?
httpStatus = await ReadLineAsync(cancellationToken) ??
throw new ServerConnectionException("Server connection was closed.");
throw new ServerConnectionException("Server connection was closed. Response status is empty.");
}

Response.ParseResponseLine(httpStatus, out var version, out int statusCode, out string description);
return new ResponseStatusInfo { Version = version, StatusCode = statusCode, Description = description };
}
catch (Exception e) when (!(e is ServerConnectionException))
{
throw new ServerConnectionException("Server connection was closed.");
throw new ServerConnectionException("Server connection was closed. Exception while reading the response status.", e);
}
}
}
Expand Down