mirror of
https://github.com/github/codeql.git
synced 2026-05-05 21:55:19 +02:00
Fix #19294, Ruby NetHttpRequest improvements
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user