Browse Source

added rename alias for index.html

Shelikhoo 4 years ago
parent
commit
69da0da0e4
1 changed files with 3 additions and 0 deletions
  1. 3 0
      app/browserforwarder/forwarder.go

+ 3 - 0
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)