fix [ log ]: small fix for better readability.

This commit is contained in:
X-Oracle authored and yuhan6665 committed 2024-04-18 08:17:29 -04:00
1 parent dd16dcec03
commit c85a91bc29
1 file changed
+2 -2
+2 -2
View File
@@ -39,12 +39,12 @@ var upgrader = &websocket.Upgrader{
func (h *requestHandler) ServeHTTP(writer http.ResponseWriter, request *http.Request) {
if len(h.host) > 0 && request.Host != h.host {
newError("failed to validate host, request:", request.Host, "config:", h.host).WriteToLog()
newError("failed to validate host, request:", request.Host, ", config:", h.host).WriteToLog()
writer.WriteHeader(http.StatusNotFound)
return
}
if request.URL.Path != h.path {
newError("failed to validate path, request:", request.URL.Path, "config:", h.path).WriteToLog()
newError("failed to validate path, request:", request.URL.Path, ", config:", h.path).WriteToLog()
writer.WriteHeader(http.StatusNotFound)
return
}