From b3f9a2f6faff8ad008433cc07a65016cb08c478f Mon Sep 17 00:00:00 2001 From: ayn2op Date: Thu, 18 Sep 2025 15:23:55 -0400 Subject: [PATCH] fix(consts): return default identify properties if response status code is not OK --- internal/consts/consts.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/internal/consts/consts.go b/internal/consts/consts.go index 0ab9917..53e60ad 100644 --- a/internal/consts/consts.go +++ b/internal/consts/consts.go @@ -71,6 +71,10 @@ func GetIdentifyProps() gateway.IdentifyProperties { } defer resp.Body.Close() + if resp.StatusCode != http.StatusOK { + return defaultIdentifyProps + } + var props Properties if err := json.NewDecoder(resp.Body).Decode(&props); err != nil { return defaultIdentifyProps