From e15fb9734279a0ee02fbdf100517e24f2f3131f3 Mon Sep 17 00:00:00 2001 From: Calvin Xiao Date: Mon, 26 Apr 2021 22:38:48 +0800 Subject: [PATCH] reset peerip only if remote_addr_header is set (#2609) --- lib/puma/client.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/puma/client.rb b/lib/puma/client.rb index 5a937e7f79..690af4503f 100644 --- a/lib/puma/client.rb +++ b/lib/puma/client.rb @@ -126,7 +126,7 @@ def reset(fast_check=true) @parsed_bytes = 0 @ready = false @body_remain = 0 - @peerip = nil + @peerip = nil if @remote_addr_header @in_last_chunk = false if @buffer