]> Sergey Matveev's repositories - tofuproxy.git/blobdiff - rounds/denyFonts.go
Excess •
[tofuproxy.git] / rounds / denyFonts.go
index 4fe1195197dc0a6167276bbe171f6370f26d34ed..a0fa0bd56a6ace8269328e1ccb21a161f0f192a4 100644 (file)
@@ -1,6 +1,7 @@
 /*
-tofuproxy -- HTTP proxy with TLS certificates management
-Copyright (C) 2021 Sergey Matveev <stargrave@stargrave.org>
+tofuproxy -- flexible HTTP/HTTPS proxy, TLS terminator, X.509 TOFU
+             manager, WARC/geminispace browser
+Copyright (C) 2021-2023 Sergey Matveev <stargrave@stargrave.org>
 
 This program is free software: you can redistribute it and/or modify
 it under the terms of the GNU General Public License as published by
@@ -36,12 +37,7 @@ func RoundDenyFonts(
                fallthrough
        case "font/otf", "font/ttf", "font/woff", "font/woff2":
                http.NotFound(w, req)
-               fifos.SinkOther <- fmt.Sprintf(
-                       "%s %s\t%d\tdeny fonts",
-                       req.Method,
-                       req.URL.String(),
-                       http.StatusNotFound,
-               )
+               fifos.LogVarious <- fmt.Sprintf("%s %s\tdeny fonts", req.Method, req.URL)
                resp.Body.Close()
                return false, nil
        }