Merge pull request #1543 from cavefire/h200-child-devices

Fix H200 + D230 Doorbell stream
This commit is contained in:
Alex X
2025-02-17 17:09:20 +03:00
committed by GitHub

View File

@@ -291,6 +291,7 @@ func dial(req *http.Request, brand, username, password string) (net.Conn, *http.
if err != nil {
return nil, nil, err
}
_, _ = io.Copy(io.Discard, res.Body) // discard leftovers
_ = res.Body.Close() // ignore response body
auth := res.Header.Get("WWW-Authenticate")