Don't serve rst diffs as HTML

pull/977/head
Daniel Wagner-Hall 9 years ago
parent 624756fb9a
commit 27ffe7bacd

@ -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…
Cancel
Save