Force / to be HTML too
This commit is contained in:
parent
559747e77a
commit
937ff046d8
1 changed files with 1 additions and 1 deletions
|
@ -388,7 +388,7 @@ func main() {
|
|||
http.HandleFunc("/diff/rst/", forceHTML(s.serveRSTDiff))
|
||||
http.HandleFunc("/diff/html/", forceHTML(s.serveHTMLDiff))
|
||||
http.HandleFunc("/healthz", serveText("ok"))
|
||||
http.HandleFunc("/", listPulls)
|
||||
http.HandleFunc("/", forceHTML(listPulls))
|
||||
|
||||
fmt.Printf("Listening on port %d\n", *port)
|
||||
log.Fatal(http.ListenAndServe(fmt.Sprintf(":%d", *port), nil))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue