Remove let, use `value`
This commit is contained in:
parent
1feca64ca8
commit
80ef987852
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue