Skip to content

Commit

Permalink
Use verify instead of verify_peer to disable SSL verification
Browse files Browse the repository at this point in the history
  • Loading branch information
makyen committed Dec 8, 2023
1 parent 40333dc commit 8e696cc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/models/user.rb
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ def flag(flag_type, post, dry_run = false, **opts)
post_id: post_id,
post_type: post_type[0..-2]
},
verify_peer: false)
verify: false)
return false, "[beta] /autoflag/options #{r.code}\n#{r.headers}\n#{r.body}" if r.code != 200
response = JSON.parse(r.body)

Expand Down Expand Up @@ -233,7 +233,7 @@ def flag(flag_type, post, dry_run = false, **opts)
flag_option_id: flag_option_id,
comment: comment
},
verify_peer: false)
verify: false)
return false, "[beta] /autoflag #{req.code}\n#{req.headers}\n#{req.body}" if req.code != 200
flag_response = JSON.parse(req.body)

Expand Down

0 comments on commit 8e696cc

Please sign in to comment.