From aa0a4f886591e075a9d3cb27eb21c213754184b1 Mon Sep 17 00:00:00 2001 From: Yann Stepienik Date: Tue, 16 May 2023 23:49:28 +0100 Subject: [PATCH] [release] version 0.5.0-unstable23 --- client/src/pages/home/index.jsx | 2 +- package.json | 2 +- src/icons.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/client/src/pages/home/index.jsx b/client/src/pages/home/index.jsx index f7231af..cc836e0 100644 --- a/client/src/pages/home/index.jsx +++ b/client/src/pages/home/index.jsx @@ -139,7 +139,7 @@ const HomePage = () => { console.log('try ' + containerName) const container = serveApps.find((c) => c.Names.includes('/' + containerName)); console.log('found ' + container) - if(container && container.State != "running") { + if(!container || container.State != "running") { skip = true } } diff --git a/package.json b/package.json index 46d9edc..ea5419e 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "cosmos-server", - "version": "0.5.0-unstable22", + "version": "0.5.0-unstable23", "description": "", "main": "test-server.js", "bugs": { diff --git a/src/icons.go b/src/icons.go index d0560df..cde2680 100644 --- a/src/icons.go +++ b/src/icons.go @@ -149,7 +149,7 @@ func GetFavicon(w http.ResponseWriter, req *http.Request) { if resp.StatusCode != 200 { utils.Error("FaviconFetch - " + iconURL + " - not 200 ", nil) continue - } else if !strings.Contains(resp.Header.Get("Content-Type"), "image") { + } else if !strings.Contains(resp.Header.Get("Content-Type"), "image") && !strings.Contains(resp.Header.Get("Content-Type"), "octet-stream") { utils.Error("FaviconFetch - " + iconURL + " - not image ", nil) continue } else {