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 da9095e commit e4271a1Copy full SHA for e4271a1
test/protocol/http1/connection.rb
@@ -207,6 +207,10 @@
207
expect(client.read_response_body("GET", 100, {'content-length' => '10'})).to be_nil
208
end
209
210
+ it "should ignore body for no content responses" do
211
+ expect(client.read_response_body("GET", 204, {})).to be_nil
212
+ end
213
+
214
it "should handle non-chunked transfer-encoding" do
215
body = client.read_response_body("GET", 200, {'transfer-encoding' => ['identity']})
216
expect(body).to be_a(::Protocol::HTTP1::Body::Remainder)
0 commit comments