Skip to content

Commit

Permalink
reset peerip only if remote_addr_header is set (puma#2609)
Browse files Browse the repository at this point in the history
  • Loading branch information
calvinxiao authored and JuanitoFatas committed Sep 9, 2022
1 parent a225cb5 commit e15fb97
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 e15fb97

Please sign in to comment.