mirror of
https://github.com/matrix-org/matrix-spec
synced 2025-12-21 00:48:38 +01:00
Force / to be HTML too
This commit is contained in:
parent
559747e77a
commit
937ff046d8
|
|
@ -388,7 +388,7 @@ func main() {
|
||||||
http.HandleFunc("/diff/rst/", forceHTML(s.serveRSTDiff))
|
http.HandleFunc("/diff/rst/", forceHTML(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("/", listPulls)
|
http.HandleFunc("/", forceHTML(listPulls))
|
||||||
|
|
||||||
fmt.Printf("Listening on port %d\n", *port)
|
fmt.Printf("Listening on port %d\n", *port)
|
||||||
log.Fatal(http.ListenAndServe(fmt.Sprintf(":%d", *port), nil))
|
log.Fatal(http.ListenAndServe(fmt.Sprintf(":%d", *port), nil))
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue