diff --git a/autobahn/fuzzingclient.json b/autobahn/fuzzingclient.json index ec96834..876318e 100644 --- a/autobahn/fuzzingclient.json +++ b/autobahn/fuzzingclient.json @@ -2,10 +2,11 @@ "outdir": "./reports/servers", "servers": [ { + "name": "nim-ws example server", "url": "ws://127.0.0.1:8888/ws" } ], "cases": ["*"], "exclude-cases": ["6.*", "9.*", "12.*", "13.*"], "exclude-agent-cases": {} -} \ No newline at end of file +} diff --git a/examples/server.nim b/examples/server.nim index 7950bb7..baa79af 100644 --- a/examples/server.nim +++ b/examples/server.nim @@ -27,6 +27,11 @@ proc process(r: RequestFence): Future[HttpResponseRef] {.async.} = except WebSocketError as exc: error "WebSocket error:", exception = exc.msg + + let header = HttpTable.init([ + ("Server", "nim-ws example server") + ]) + discard await request.respond(Http200, "Hello World") else: return dumbResponse()