Skip to content

Commit d166e81

Browse files
WIP
1 parent 4ae402a commit d166e81

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

lib/protocol/rack/response.rb

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -50,12 +50,7 @@ def self.wrap(env, status, headers, meta, body, request = nil)
5050
body = hijack_body
5151
end
5252

53-
body = Body.wrap(env, status, headers, body, request&.body)
54-
55-
if request&.head?
56-
# I thought about doing this in Output.wrap, but decided the semantics are too tricky. Specifically, the various ways a rack response body can be wrapped, and the need to invoke #close at the right point.
57-
body = ::Protocol::HTTP::Body::Head.for(body)
58-
end
53+
body = Body.wrap(env, status, headers, body, request&.body, request&.head?)
5954

6055
protocol = meta[RACK_PROTOCOL]
6156

0 commit comments

Comments
 (0)