Fix #19294, Ruby NetHttpRequest improvements

This commit is contained in:
Matt Schwager
2025-07-21 15:17:54 -04:00
parent 05572b49de
commit 9da94fb880
2 changed files with 26 additions and 4 deletions

View File

@@ -27,3 +27,11 @@ end
get("example.com", "/").body
Net::HTTP.post(uri, "some_body") # note: response body not accessed
http = Net::HTTP.new("https://example.com")
root_get = Net::HTTP::Get.new("/")
http.request(root_get)
Net::HTTP.start("https://example.com") do |http|
http.get("/")
end