Skip to content

Commit

Permalink
Fixup write_response refactoring bug puma#2808
Browse files Browse the repository at this point in the history
  • Loading branch information
baelter committed Jan 27, 2022
1 parent cfde8a7 commit df6512c
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions lib/puma/request.rb
Expand Up @@ -110,11 +110,8 @@ def write_response(status, headers, res_body, lines, requests, client)
env = client.env
io = client.io

return false if closed_socket?(io)
lines.clear

head = env[REQUEST_METHOD] == HEAD
after_reply = env[RACK_AFTER_REPLY] || []
after_reply = env[RACK_AFTER_REPLY] ||= []

begin
res_info = {}
Expand Down

0 comments on commit df6512c

Please sign in to comment.