]> Sergey Matveev's repositories - tofuproxy.git/blobdiff - rounds/redirectHTML.go
Raised copyright years
[tofuproxy.git] / rounds / redirectHTML.go
index d13047a14dc37a139c9d77fb1d6623765866df28..a5d4bd779f6e430b2008d12e1d6389c0d885b743 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-2022 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
@@ -77,8 +78,9 @@ func RoundRedirectHTML(
        location := resp.Header.Get("Location")
        w.Write([]byte(
                fmt.Sprintf(
-                       `<html><head><title>%d %s: %s redirection</title></head>
-<body>Redirection to <a href="%s">%s</a></body></html>`,
+                       `<!DOCTYPE html>
+<html><head><title>%d %s: %s redirection</title></head>
+<body><a href="%s">%s</a></body></html>`,
                        resp.StatusCode, http.StatusText(resp.StatusCode),
                        redirType, location, location,
                )))