[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,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 {
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue