diff --git a/docs/api.go b/docs/api.go index 2addac6..ebdf1e9 100644 --- a/docs/api.go +++ b/docs/api.go @@ -22,7 +22,5 @@ func main() { } }) - fmt.Println("Calling ServeOnce") - wasmhttp.ServeOnce(nil) } diff --git a/docs/api.wasm b/docs/api.wasm index a373d97..2b9d139 100755 Binary files a/docs/api.wasm and b/docs/api.wasm differ diff --git a/serve.go b/serve.go index 0b62083..85fe990 100644 --- a/serve.go +++ b/serve.go @@ -118,6 +118,8 @@ func ServeOnce(handler http.Handler) { var res = whutil.NewResponseWriter() + fmt.Printf("serving %s\n", req.RequestURI) + h.ServeHTTP(res, req) resolve(res)