mirror of
https://github.com/status-im/nim-json-rpc.git
synced 2025-02-24 10:18:15 +00:00
Remove let, use value
This commit is contained in:
parent
1feca64ca8
commit
80ef987852
@ -20,9 +20,9 @@ type
|
||||
defineRpcServerTransport(httpProcessClient):
|
||||
write:
|
||||
const contentType = "Content-Type: application/json-rpc"
|
||||
let msg = &"Host: {$transport.localAddress} {contentType} Content-Length: {$value.len} {value}"
|
||||
value = &"Host: {$transport.localAddress} {contentType} Content-Length: {$value.len} {value}"
|
||||
debug "HTTP server: write", msg = msg
|
||||
transport.write(msg)
|
||||
transport.write(value)
|
||||
afterRead:
|
||||
debug "HTTP server: read", msg = value
|
||||
value = "HTTP Server".extractJsonStr(value)
|
||||
|
Loading…
x
Reference in New Issue
Block a user