mirror of
https://github.com/AlexxIT/go2rtc.git
synced 2025-09-27 12:42:18 +08:00
Update pkg/tapo/client.go
Co-authored-by: Sergey Vilgelm <523825+SVilgelm@users.noreply.github.com>
This commit is contained in:
@@ -291,7 +291,8 @@ func dial(req *http.Request, brand, username, password string) (net.Conn, *http.
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, nil, err
|
return nil, nil, err
|
||||||
}
|
}
|
||||||
_, _ = io.Copy(io.Discard, res.Body) // ignore response body
|
_, _ = io.Copy(io.Discard, res.Body) // discard leftovers
|
||||||
|
_ = res.Body.Close() // ignore response body
|
||||||
|
|
||||||
auth := res.Header.Get("WWW-Authenticate")
|
auth := res.Header.Get("WWW-Authenticate")
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user