Update for define rename

This commit is contained in:
coffeepots 2018-06-22 18:22:17 +01:00
parent ffb4752811
commit 99018eede4
1 changed files with 3 additions and 3 deletions

View File

@ -4,10 +4,10 @@ export rpcserver
type
RpcHttpServer* = RpcServer[StreamServer]
defineRpcTransport(httpProcessClient):
defineRpcServerTransport(httpProcessClient):
write:
let
msg = &"Host: {$client.localAddress} Content-Type: application/json-rpc Content-Length: {$value.len} {value}"
const contentType = "Content-Type: application/json-rpc"
let msg = &"Host: {$client.localAddress} {contentType} Content-Length: {$value.len} {value}"
debug "Http write", msg = msg
client.write(msg)
afterRead: