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

Commit

Permalink
Merge pull request #724 from justcoding121/master
Browse files Browse the repository at this point in the history
beta
  • Loading branch information
honfika authored Dec 27, 2019
2 parents 6149ed6 + bc85dd9 commit 746f8d6
Showing 1 changed file with 2 additions and 2 deletions.
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

0 comments on commit 746f8d6

Please sign in to comment.