mirror of
https://github.com/github/codeql.git
synced 2026-04-17 21:14:02 +02:00
11 lines
258 B
Ruby
11 lines
258 B
Ruby
require "typhoeus"
|
|
|
|
# BAD
|
|
Typhoeus.get("https://www.example.com", ssl_verifypeer: false)
|
|
|
|
# BAD
|
|
post_options = { body: "some data", ssl_verifypeer: false }
|
|
Typhoeus.post("https://www.example.com", post_options)
|
|
|
|
# GOOD
|
|
Typhoeus.get("https://www.example.com") |