From 65084c50520310306ee44d25160762f27512a664 Mon Sep 17 00:00:00 2001 From: Neil Alexander Date: Mon, 6 Jul 2020 17:25:46 +0100 Subject: [PATCH] Fix Riot Web embedding into Yggdrasil demo --- cmd/dendrite-demo-yggdrasil/embed/embed_riotweb.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/dendrite-demo-yggdrasil/embed/embed_riotweb.go b/cmd/dendrite-demo-yggdrasil/embed/embed_riotweb.go index a9e04a312..e0f63b297 100644 --- a/cmd/dendrite-demo-yggdrasil/embed/embed_riotweb.go +++ b/cmd/dendrite-demo-yggdrasil/embed/embed_riotweb.go @@ -19,7 +19,7 @@ func Embed(rootMux *mux.Router, listenPort int, serverName string) { embeddedFS := _escFS(false) embeddedServ := http.FileServer(embeddedFS) - rootMux.Handle("/", embeddedServ) + rootMux.NotFoundHandler = embeddedServ rootMux.HandleFunc("/config.json", func(w http.ResponseWriter, _ *http.Request) { configFile, err := embeddedFS.Open("/config.sample.json") if err != nil {