From 28ce2447ef9c4bd75ad6e21bc9f3a660714a3b02 Mon Sep 17 00:00:00 2001 From: Eli Uriegas Date: Thu, 10 Nov 2016 15:28:16 -0600 Subject: [PATCH] Update variable name Give `ra` a more explicit name --- sanic/server.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sanic/server.py b/sanic/server.py index e802b5df..0fd85440 100644 --- a/sanic/server.py +++ b/sanic/server.py @@ -114,9 +114,9 @@ class HttpProtocol(asyncio.Protocol): self.headers.append((name.decode(), value.decode('utf-8'))) def on_headers_complete(self): - ra = self.transport.get_extra_info('peername') - if ra: - self.headers.append(('Remote-Addr', '%s:%s' % ra)) + remote_addr = self.transport.get_extra_info('peername') + if remote_addr: + self.headers.append(('Remote-Addr', '%s:%s' % remote_addr)) self.request = Request( url_bytes=self.url,