We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d6e1231 commit c18b824Copy full SHA for c18b824
internal/vsp/client.go
@@ -70,6 +70,8 @@ func (c *client) do(ctx context.Context, method, path string, addr dcrutil.Addre
70
if err != nil {
71
return fmt.Errorf("%s %s: %w", method, httpReq.URL.String(), err)
72
}
73
+ defer reply.Body.Close()
74
+
75
status := reply.StatusCode
76
is200 := status == 200
77
is4xx := status >= 400 && status <= 499
0 commit comments