/*
tofuproxy -- flexible HTTP/HTTPS proxy, TLS terminator, X.509 TOFU
manager, WARC/geminispace browser
-Copyright (C) 2021 Sergey Matveev <stargrave@stargrave.org>
+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
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)
}