mirror of
https://github.com/v2fly/v2ray-core.git
synced 2025-02-20 23:47:21 -05:00
partly revert @kslr's change to the browser forwarder that unnecessarily convert to the platform format.
This commit is contained in:
parent
03f0da94ee
commit
7731405389
@ -7,7 +7,6 @@ import (
|
|||||||
"context"
|
"context"
|
||||||
"io"
|
"io"
|
||||||
"net/http"
|
"net/http"
|
||||||
"path/filepath"
|
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/v2fly/BrowserBridge/handler"
|
"github.com/v2fly/BrowserBridge/handler"
|
||||||
@ -80,7 +79,7 @@ func BridgeResource(rw http.ResponseWriter, r *http.Request, path string) {
|
|||||||
if content == "" {
|
if content == "" {
|
||||||
content = "index.html"
|
content = "index.html"
|
||||||
}
|
}
|
||||||
data, err := securedload.GetAssetSecured(filepath.Join("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)
|
||||||
http.Error(rw, err.Error(), http.StatusForbidden)
|
http.Error(rw, err.Error(), http.StatusForbidden)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user