We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 789983a commit 9f325c7Copy full SHA for 9f325c7
lib/async/http/protocol/http1/server.rb
@@ -83,7 +83,7 @@ def each(task: Task.current)
83
version = request.version
84
85
# Same as above:
86
- request = nil unless body
+ request = nil unless request.body
87
response = nil
88
89
write_body(version, body, head, trailer)
@@ -98,7 +98,7 @@ def each(task: Task.current)
98
end
99
100
# Gracefully finish reading the request body if it was not already done so.
101
- request&.finish
+ request&.each{}
102
103
# This ensures we yield at least once every iteration of the loop and allow other fibers to execute.
104
task.yield
@@ -109,6 +109,7 @@ def each(task: Task.current)
109
110
111
112
+
113
114
115
0 commit comments