From 69da0da0e48d02ecca974721d113484720c02fe3 Mon Sep 17 00:00:00 2001 From: Shelikhoo Date: Sat, 20 Mar 2021 21:37:06 +0000 Subject: [PATCH] added rename alias for index.html --- app/browserforwarder/forwarder.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/browserforwarder/forwarder.go b/app/browserforwarder/forwarder.go index 41e5a40e7..648a2cf5f 100644 --- a/app/browserforwarder/forwarder.go +++ b/app/browserforwarder/forwarder.go @@ -73,6 +73,9 @@ func (f *Forwarder) Close() error { func BridgeResource(rw http.ResponseWriter, r *http.Request, path string) { content := path + if content == "" { + content = "index.html" + } data, err := securedload.GetAssetSecured("browserforwarder/" + content) if err != nil { err = newError("cannot load necessary resources").Base(err)