Created
May 23, 2017 18:54
-
-
Save danajp/8341cdcde9b6db10429dec84a0197442 to your computer and use it in GitHub Desktop.
[net http blog] monkey patch net http
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
class Net::HTTP | |
SSL_IVNAMES << :@extra_chain_cert unless SSL_IVNAMES.include?(:@extra_chain_cert) | |
SSL_ATTRIBUTES << :extra_chain_cert unless SSL_ATTRIBUTES.include?(:extra_chain_cert) | |
attr_accessor :extra_chain_cert | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
the condition can be coded only once: