mirror of
https://github.com/logos-storage/nim-json-rpc.git
synced 2026-01-09 09:03:10 +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