[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,10 +199,12 @@ 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) {
if _hostIdx != 0 {
_server.ServeStatic (_context, http.StatusOK, FaviconData, FaviconContentType, FaviconContentEncoding, true) _server.ServeStatic (_context, http.StatusOK, FaviconData, FaviconContentType, FaviconContentEncoding, true)
return return
} }
} }
}
if !_referencesFound { if !_referencesFound {