Skip to content

Commit 504a0f8

Browse files
committed
Ruby: Add test where response body is not referenced
1 parent 209aeba commit 504a0f8

File tree

1 file changed

+2
-0
lines changed
  • ruby/ql/test/library-tests/frameworks/http_clients

1 file changed

+2
-0
lines changed

ruby/ql/test/library-tests/frameworks/http_clients/NetHttp.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,5 @@ def get(domain, path)
2525
end
2626

2727
get("example.com", "/").body
28+
29+
Net::HTTP.post(uri, "some_body") # note: response body not accessed

0 commit comments

Comments
 (0)