Remove let, use `value`

This commit is contained in:
coffeepots 2018-06-26 16:28:34 +01:00
parent 1feca64ca8
commit 80ef987852
1 changed files with 2 additions and 2 deletions

View File

@ -20,9 +20,9 @@ type
defineRpcServerTransport(httpProcessClient): defineRpcServerTransport(httpProcessClient):
write: write:
const contentType = "Content-Type: application/json-rpc" 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 debug "HTTP server: write", msg = msg
transport.write(msg) transport.write(value)
afterRead: afterRead:
debug "HTTP server: read", msg = value debug "HTTP server: read", msg = value
value = "HTTP Server".extractJsonStr(value) value = "HTTP Server".extractJsonStr(value)