From 550ce91a7fc4719631552ed42f3632730dee741a Mon Sep 17 00:00:00 2001 From: Bel LaPointe Date: Tue, 11 Jan 2022 08:35:07 -0500 Subject: [PATCH] accept more noauth codes from ntg --- broker/ntgvision.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/broker/ntgvision.go b/broker/ntgvision.go index c793656..91e6323 100644 --- a/broker/ntgvision.go +++ b/broker/ntgvision.go @@ -146,7 +146,7 @@ func (ntg NTGVision) _search(states []config.State) (io.ReadCloser, error) { if resp.StatusCode != http.StatusOK { b, _ := ioutil.ReadAll(resp.Body) resp.Body.Close() - if resp.StatusCode > 400 && resp.StatusCode < 404 { + if resp.StatusCode > 400 && resp.StatusCode < 500 && resp.StatusCode != 404 && resp.StatusCode != 410 { return nil, ErrNoAuth } return nil, fmt.Errorf("bad status searching ntg: %d: %s", resp.StatusCode, b)