File tree 2 files changed +3
-3
lines changed
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -1529,7 +1529,7 @@ def use_ssl=(flag)
1529
1529
:verify_hostname ,
1530
1530
] # :nodoc:
1531
1531
1532
- SSL_IVNAMES = SSL_ATTRIBUTES . map { |a | "@#{ a } " . to_sym } # :nodoc:
1532
+ SSL_IVNAMES = SSL_ATTRIBUTES . map { |a | "@#{ a } " . to_sym } . freeze # :nodoc:
1533
1533
1534
1534
# Sets or returns the path to a CA certification file in PEM format.
1535
1535
attr_accessor :ca_file
Original file line number Diff line number Diff line change @@ -1104,7 +1104,7 @@ class Net::HTTPResponse
1104
1104
'3' => Net ::HTTPRedirection ,
1105
1105
'4' => Net ::HTTPClientError ,
1106
1106
'5' => Net ::HTTPServerError
1107
- }
1107
+ } . freeze
1108
1108
CODE_TO_OBJ = {
1109
1109
'100' => Net ::HTTPContinue ,
1110
1110
'101' => Net ::HTTPSwitchProtocol ,
@@ -1170,5 +1170,5 @@ class Net::HTTPResponse
1170
1170
'508' => Net ::HTTPLoopDetected ,
1171
1171
'510' => Net ::HTTPNotExtended ,
1172
1172
'511' => Net ::HTTPNetworkAuthenticationRequired ,
1173
- }
1173
+ } . freeze
1174
1174
end
You can’t perform that action at this time.
0 commit comments