From d7339c855e2780b3961fe5dadd4271af261b5737 Mon Sep 17 00:00:00 2001 From: Bel LaPointe Date: Thu, 27 Jan 2022 15:37:58 -0700 Subject: [PATCH] if parse script to redir, then return no auth --- broker/fastexact.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/broker/fastexact.go b/broker/fastexact.go index 7eb0ae6..ec68efb 100644 --- a/broker/fastexact.go +++ b/broker/fastexact.go @@ -158,6 +158,9 @@ func (fe FastExact) parse(resp *http.Response) ([]Job, error) { } b, _ = ioutil.ReadAll(gzip) } + if bytes.Contains(b, []byte(``)) { + return nil, ErrNoAuth + } logtr.Verbosef("fe.parse %s", b) resp.Body = io.NopCloser(bytes.NewReader(b)) doc, err := goquery.NewDocumentFromReader(resp.Body)