From 80ef987852999c270491803a545dca657d2626a3 Mon Sep 17 00:00:00 2001 From: coffeepots Date: Tue, 26 Jun 2018 16:28:34 +0100 Subject: [PATCH] Remove let, use `value` --- rpchttpservers.nim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rpchttpservers.nim b/rpchttpservers.nim index 00183ee..2568bb2 100644 --- a/rpchttpservers.nim +++ b/rpchttpservers.nim @@ -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)