[server] Minor fixup with regard of /favicon.ico
handling.
This commit is contained in:
parent
65b0ab5fe6
commit
07260016e1
1 changed files with 4 additions and 2 deletions
|
@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue