mirror of
https://github.com/matrix-org/matrix-spec
synced 2025-12-23 01:38:36 +01:00
Don't serve rst diffs as HTML
This commit is contained in:
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…
Reference in a new issue