From 728b34b6843e866f31c6f6b24e8cb60cbafceafb Mon Sep 17 00:00:00 2001 From: jdl Date: Sun, 3 Dec 2023 20:26:27 +0100 Subject: [PATCH] Fix streaming handlers for https. --- mdb/db.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/mdb/db.go b/mdb/db.go index a6f66ff..b290fe9 100644 --- a/mdb/db.go +++ b/mdb/db.go @@ -183,3 +183,7 @@ func (db *Database) addCollection(id uint64, c collection, collectionState any) func (db *Database) Handle(w http.ResponseWriter, r *http.Request) { db.rep.Handle(w, r) } + +func (db *Database) RegisterHandlers(mux *http.ServeMux, rootPath string) { + db.rep.RegisterHandlers(mux, rootPath) +}