mirror of
https://github.com/nlepage/go-wasm-http-server.git
synced 2026-01-12 01:59:14 +00:00
♻️ Some review/improvements
This commit is contained in:
2
serve.go
2
serve.go
@@ -22,7 +22,7 @@ func Serve(handler http.Handler) func() {
|
||||
path = path + "/"
|
||||
}
|
||||
|
||||
if path != "" {
|
||||
if path != "" { // FIXME always true since / suffix is added to path
|
||||
prefix := os.Getenv("WASMHTTP_PATH")
|
||||
for strings.HasSuffix(prefix, "/") {
|
||||
prefix = strings.TrimSuffix(prefix, "/")
|
||||
|
||||
Reference in New Issue
Block a user