diff options
author | Oleksandr Redko <oleksandr.red+github@gmail.com> | 2023-03-11 18:48:33 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-11 17:48:33 +0100 |
commit | 7846101dc65ee5e02cea672af4594e3a80048632 (patch) | |
tree | f7c47f6979d427dd4510a1147ebcbc00acd52f29 /client.go | |
parent | Fix proxy auth bug (diff) | |
download | fasthttp-7846101dc65ee5e02cea672af4594e3a80048632.tar.gz fasthttp-7846101dc65ee5e02cea672af4594e3a80048632.tar.bz2 fasthttp-7846101dc65ee5e02cea672af4594e3a80048632.zip |
client: fix Do hangs when configure host client fails (#1514)
Diffstat (limited to 'client.go')
-rw-r--r-- | client.go | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -527,6 +527,7 @@ func (c *Client) Do(req *Request, resp *Response) error { if c.ConfigureClient != nil { if err := c.ConfigureClient(hc); err != nil { + c.mLock.Unlock() return err } } |