diff --git a/internal/cosmos/client.go b/internal/cosmos/client.go index ba5db6c..fa391e5 100644 --- a/internal/cosmos/client.go +++ b/internal/cosmos/client.go @@ -348,20 +348,3 @@ func getActiveEndpoint(endpoints []RestEndpoint) string { return "" } - -func isValidJSONResponse(resp *http.Response, body []byte) bool { - contentType := resp.Header.Get("Content-Type") - if !strings.Contains(strings.ToLower(contentType), "application/json") { - return false - } - - // Check if the response looks like HTML - if strings.Contains(strings.ToLower(string(body)), "