Skip to content

Commit

Permalink
reset peerip only if remote_addr_header is set (#2609)
Browse files Browse the repository at this point in the history
  • Loading branch information
calvinxiao committed Apr 26, 2021
1 parent 51a82b5 commit 01ffec5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/puma/client.rb
Expand Up @@ -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
Expand Down

0 comments on commit 01ffec5

Please sign in to comment.