mirror of
https://github.com/v2fly/v2ray-core.git
synced 2025-02-20 23:47:21 -05:00
added rename alias for index.html
This commit is contained in:
parent
6c1abd9c6a
commit
69da0da0e4
@ -73,6 +73,9 @@ func (f *Forwarder) Close() error {
|
|||||||
|
|
||||||
func BridgeResource(rw http.ResponseWriter, r *http.Request, path string) {
|
func BridgeResource(rw http.ResponseWriter, r *http.Request, path string) {
|
||||||
content := path
|
content := path
|
||||||
|
if content == "" {
|
||||||
|
content = "index.html"
|
||||||
|
}
|
||||||
data, err := securedload.GetAssetSecured("browserforwarder/" + content)
|
data, err := securedload.GetAssetSecured("browserforwarder/" + content)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
err = newError("cannot load necessary resources").Base(err)
|
err = newError("cannot load necessary resources").Base(err)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user