X-Git-Url: http://www.git.stargrave.org/?a=blobdiff_plain;f=rounds%2Fwarc.go;h=19c745d27bd562659af37d106ff10cfb80a8aa29;hb=aebff9ec61ff98c73f83f73f081401038699d37f;hp=16dee3c86c23b7a99cb0e127bf82a186c86335d2;hpb=aca0f719ffa95e51420a625813f2f4cbf1d5397c;p=tofuproxy.git diff --git a/rounds/warc.go b/rounds/warc.go index 16dee3c..19c745d 100644 --- a/rounds/warc.go +++ b/rounds/warc.go @@ -1,20 +1,18 @@ -/* -tofuproxy -- flexible HTTP/HTTPS proxy, TLS terminator, X.509 TOFU - manager, WARC/geminispace browser -Copyright (C) 2021 Sergey Matveev - -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 -the Free Software Foundation, version 3 of the License. - -This program is distributed in the hope that it will be useful, -but WITHOUT ANY WARRANTY; without even the implied warranty of -MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -GNU General Public License for more details. - -You should have received a copy of the GNU General Public License -along with this program. If not, see . -*/ +// tofuproxy -- flexible HTTP/HTTPS proxy, TLS terminator, X.509 TOFU +// manager, WARC/geminispace browser +// Copyright (C) 2021-2024 Sergey Matveev +// +// 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 +// the Free Software Foundation, version 3 of the License. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . package rounds @@ -124,7 +122,9 @@ func RoundWARC( if rec == nil { if WARCOnly { http.NotFound(w, req) - fifos.LogNonOK <- fmt.Sprintf("%s %s\tnot in WARC", req.Method, req.URL) + fifos.LogNonOK <- fmt.Sprintf( + "%s %s\tnot in WARC", req.Method, req.URL, + ) return false, nil } return true, nil