]> Sergey Matveev's repositories - tofuproxy.git/blobdiff - rounds/redirectHTML.go
gemini:// support
[tofuproxy.git] / rounds / redirectHTML.go
index d13047a14dc37a139c9d77fb1d6623765866df28..6a7e1fbfd4d2789fd4f920f4b9fe157f7911cb4f 100644 (file)
@@ -1,5 +1,6 @@
 /*
-tofuproxy -- flexible HTTP/WARC proxy with TLS certificates management
+tofuproxy -- flexible HTTP proxy, TLS terminator, X.509 certificates
+             manager, WARC/Gemini browser
 Copyright (C) 2021 Sergey Matveev <stargrave@stargrave.org>
 
 This program is free software: you can redistribute it and/or modify
@@ -77,7 +78,8 @@ func RoundRedirectHTML(
        location := resp.Header.Get("Location")
        w.Write([]byte(
                fmt.Sprintf(
-                       `<html><head><title>%d %s: %s redirection</title></head>
+                       `<!DOCTYPE html>
+<html><head><title>%d %s: %s redirection</title></head>
 <body>Redirection to <a href="%s">%s</a></body></html>`,
                        resp.StatusCode, http.StatusText(resp.StatusCode),
                        redirType, location, location,