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 6f2d6e1 commit abfd8cfCopy full SHA for abfd8cf
lib/async/http/protocol/http1/server.rb
@@ -71,7 +71,8 @@ def each(task: Task.current)
71
request = nil unless request.body
72
response = nil
73
74
- body.call(stream)
+ # We must return here as no further request processing can be done:
75
+ return body.call(stream)
76
else
77
write_response(@version, response.status, response.headers)
78
@@ -82,7 +83,8 @@ def each(task: Task.current)
82
83
84
85
86
87
88
89
head = request.head?
90
version = request.version
0 commit comments