Skip to content

Commit 44f922d

Browse files
committed
Don't hide response reason.
1 parent b235a80 commit 44f922d

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

lib/async/http/protocol/http1/server.rb

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@ module HTTP1
1515
class Server < Connection
1616
def fail_request(status)
1717
@persistent = false
18-
write_response(@version, status, {}, nil)
18+
write_response(@version, status, {})
1919
write_body(@version, nil)
2020
rescue Errno::ECONNRESET, Errno::EPIPE
21-
# Handle when connection is already closed
21+
# Nothing we can do...
2222
end
2323

2424
def next_request
@@ -110,7 +110,6 @@ def each(task: Task.current)
110110
end
111111
end
112112
end
113-
114113
end
115114
end
116115
end

0 commit comments

Comments
 (0)