Skip to content

Instantly share code, notes, and snippets.

@Tho85

Tho85/airbrake.rb

Created Nov 28, 2013
Embed
What would you like to do?
# Don't verify SSL certificates
# Needed for https://exceptions.zweitagapps.com on Heroku
module Airbrake
class Sender
alias orig_setup_http_connection setup_http_connection
def setup_http_connection
orig_setup_http_connection.tap do |http|
http.verify_mode = OpenSSL::SSL::VERIFY_NONE if secure?
end
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment