Don't serve rst diffs as HTML
This commit is contained in:
parent
624756fb9a
commit
27ffe7bacd
1 changed files with 1 additions and 1 deletions
|
@ -385,7 +385,7 @@ func main() {
|
||||||
}
|
}
|
||||||
s := server{masterCloneDir}
|
s := server{masterCloneDir}
|
||||||
http.HandleFunc("/spec/", forceHTML(s.serveSpec))
|
http.HandleFunc("/spec/", forceHTML(s.serveSpec))
|
||||||
http.HandleFunc("/diff/rst/", forceHTML(s.serveRSTDiff))
|
http.HandleFunc("/diff/rst/", s.serveRSTDiff)
|
||||||
http.HandleFunc("/diff/html/", forceHTML(s.serveHTMLDiff))
|
http.HandleFunc("/diff/html/", forceHTML(s.serveHTMLDiff))
|
||||||
http.HandleFunc("/healthz", serveText("ok"))
|
http.HandleFunc("/healthz", serveText("ok"))
|
||||||
http.HandleFunc("/", forceHTML(listPulls))
|
http.HandleFunc("/", forceHTML(listPulls))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue