Created
May 23, 2017 18:58
-
-
Save danajp/0d97bdf7656d1d370bf6823e8264bbaf to your computer and use it in GitHub Desktop.
[net http blog] monkey patch rest client const
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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