Skip to content

Instantly share code, notes, and snippets.

@danajp
Created May 23, 2017 18:58
Show Gist options
  • Save danajp/0d97bdf7656d1d370bf6823e8264bbaf to your computer and use it in GitHub Desktop.
Save danajp/0d97bdf7656d1d370bf6823e8264bbaf to your computer and use it in GitHub Desktop.
[net http blog] monkey patch rest client const
# Avoid "already initialized constant" warnings
ssl_option_list = RestClient::Request::SSLOptionList
ssl_option_list << 'extra_chain_cert'
RestClient::Request.send(:remove_const, 'SSLOptionList')
RestClient::Request.const_set('SSLOptionList', ssl_option_list)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment