Add gun-lite gRPC implementation (#44)

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

No files matched your search

+1
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{