From 07260016e19cf6fd5b87a532a9c01c66e0b5780b Mon Sep 17 00:00:00 2001 From: Ciprian Dorin Craciun Date: Fri, 26 Aug 2022 22:08:32 +0300 Subject: [PATCH] [server] Minor fixup with regard of `/favicon.ico` handling. --- sources/cmd/server/server.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/sources/cmd/server/server.go b/sources/cmd/server/server.go index 8cb2072..f7694e1 100644 --- a/sources/cmd/server/server.go +++ b/sources/cmd/server/server.go @@ -199,8 +199,10 @@ func (_server *server) ServeUnwrapped (_context *fasthttp.RequestCtx) () { if !_referencesFound { if bytes.Equal (StringToBytes ("/favicon.ico"), _path) { - _server.ServeStatic (_context, http.StatusOK, FaviconData, FaviconContentType, FaviconContentEncoding, true) - return + if _hostIdx != 0 { + _server.ServeStatic (_context, http.StatusOK, FaviconData, FaviconContentType, FaviconContentEncoding, true) + return + } } }