Add gun-lite gRPC implementation (#44)

This commit is contained in:
Hellojack
2022-08-27 21:05:15 +08:00
committed by GitHub
parent d59d40c118
commit de2453fce9
9 changed files with 418 additions and 15 deletions

View File

@@ -141,6 +141,7 @@ func (c *Client) dialHTTP2(ctx context.Context) (net.Conn, error) {
return nil, err
}
if response.StatusCode != 200 {
pipeInWriter.Close()
return nil, E.New("unexpected status: ", response.StatusCode, " ", response.Status)
}
return &HTTPConn{