[server] Minor fixup with regard of /favicon.ico handling.

This commit is contained in:
Ciprian Dorin Craciun 2022-08-26 22:08:32 +03:00
parent 65b0ab5fe6
commit 07260016e1

View file

@ -199,8 +199,10 @@ func (_server *server) ServeUnwrapped (_context *fasthttp.RequestCtx) () {
if !_referencesFound { if !_referencesFound {
if bytes.Equal (StringToBytes ("/favicon.ico"), _path) { if bytes.Equal (StringToBytes ("/favicon.ico"), _path) {
_server.ServeStatic (_context, http.StatusOK, FaviconData, FaviconContentType, FaviconContentEncoding, true) if _hostIdx != 0 {
return _server.ServeStatic (_context, http.StatusOK, FaviconData, FaviconContentType, FaviconContentEncoding, true)
return
}
} }
} }