]> Sergey Matveev's repositories - tofuproxy.git/blobdiff - warc/header.go
Unused function
[tofuproxy.git] / warc / header.go
index cb1b7a9a13f714c3cf41b903dc05f45bb8a4d4cd..61c18bd9b543e87728470c85b3c255b95475cd05 100644 (file)
@@ -1,6 +1,7 @@
 /*
-tofuproxy -- flexible HTTP/WARC 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
@@ -21,14 +22,6 @@ import "strings"
 
 type Header map[string]string
 
-func splitKeyValue(line string) (string, string) {
-       parts := strings.SplitN(line, ":", 2)
-       if len(parts) != 2 {
-               return "", ""
-       }
-       return parts[0], strings.TrimSpace(parts[1])
-}
-
 func NewHeader() Header {
        return make(map[string]string)
 }