c0b9c0d5400747dd88116b1eb9a5026cebdcf082
- Author
- Ayman Bagabas <ayman.bagabas@gmail.com>
- Committer
- Ayman Bagabas <ayman.bagabas@gmail.com>
- Date
Message
fix(http): index template html
Diff
1diff --git a/server/http.go b/server/http.go
2index fc9fc6d5680a8eb34190a0b4c2919bf049ca0589..1074a31a97b9f1d4ca72b6ae3947ec96e6b0e42a 100644
3--- a/server/http.go
4+++ b/server/http.go
5@@ -236,12 +236,12 @@ func findStringSubmatch(path string, prefix *regexp.Regexp) *match {
6 var repoIndexHTMLTpl = template.Must(template.New("index").Parse(`<!DOCTYPE html>
7 <html lang="en">
8 <head>
9- <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
10- <meta http-equiv="refresh" content="0; url=https://godoc.org/{{.ImportRoot}}/{{.Repo}}"
11- <meta name="go-import" content="{{.ImportRoot}}/{{.Repo}} git {{.Config.SSH.PublicURL}}/{{.Repo}}">
12+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
13+ <meta http-equiv="refresh" content="0; url=https://godoc.org/{{ .ImportRoot }}/{{.Repo}}">
14+ <meta name="go-import" content="{{ .ImportRoot }}/{{ .Repo }} git {{ .Config.HTTP.PublicURL }}/{{ .Repo }}">
15 </head>
16 <body>
17-Redirecting to docs at <a href="https://godoc.org/{{.ImportRoot}}/{{.Repo}}">godoc.org/{{.ImportRoot}}/{{.Repo}}</a>...
18+Redirecting to docs at <a href="https://godoc.org/{{ .ImportRoot }}/{{ .Repo }}">godoc.org/{{ .ImportRoot }}/{{ .Repo }}</a>...
19 </body>
20 </html>`))
21