mirror of
https://github.com/nlepage/go-wasm-http-server.git
synced 2025-03-10 17:29:10 +00:00
📝
This commit is contained in:
parent
b3e8d72ed1
commit
472360783b
@ -11,9 +11,9 @@
|
||||
</a>
|
||||
</p>
|
||||
|
||||
> WebAssembly Go HTTP Server embedded in a ServiceWorker
|
||||
> Build your Go HTTP Server to [WebAssembly](https://mdn.io/WebAssembly/) and embed it in a ServiceWorker!
|
||||
|
||||
### ✨ [Demo](https://nlepage.github.io/go-wasm-http-server/)
|
||||
✨ [Demos](https://nlepage.github.io/go-wasm-http-server/)
|
||||
|
||||
## Install
|
||||
|
||||
@ -35,7 +35,7 @@ TODO
|
||||
|
||||
👤 **Nicolas Lepage**
|
||||
|
||||
* Website: https://nicolas.lepage.dev
|
||||
* Website: https://nicolas.lepage.dev/
|
||||
* Twitter: [@njblepage](https://twitter.com/njblepage)
|
||||
* Github: [@nlepage](https://github.com/nlepage)
|
||||
|
||||
|
@ -32,7 +32,7 @@ func (rr ResponseRecorder) JSValue() js.Value {
|
||||
js.CopyBytesToJS(body, b)
|
||||
}
|
||||
|
||||
var init = make(map[string]interface{})
|
||||
var init = make(map[string]interface{}, 2)
|
||||
|
||||
if res.StatusCode != 0 {
|
||||
init["status"] = res.StatusCode
|
||||
|
Loading…
x
Reference in New Issue
Block a user