Skip to content

Commit 38d8a19

Browse files
authored
Merge pull request #38 from znz/fix-unescaped-.-in-regexp
Fix unescaped `.` in Regexp
2 parents 11e6fb1 + 0502274 commit 38d8a19

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/net/http/test_https.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ def test_post
137137
def test_session_reuse
138138
# FIXME: The new_session_cb is known broken for clients in OpenSSL 1.1.0h.
139139
# See https://github.com/openssl/openssl/pull/5967 for details.
140-
omit if OpenSSL::OPENSSL_LIBRARY_VERSION =~ /OpenSSL 1.1.0h/
140+
omit if OpenSSL::OPENSSL_LIBRARY_VERSION.include?('OpenSSL 1.1.0h')
141141

142142
http = Net::HTTP.new(HOST, config("port"))
143143
http.use_ssl = true
@@ -164,7 +164,7 @@ def test_session_reuse
164164

165165
def test_session_reuse_but_expire
166166
# FIXME: The new_session_cb is known broken for clients in OpenSSL 1.1.0h.
167-
omit if OpenSSL::OPENSSL_LIBRARY_VERSION =~ /OpenSSL 1.1.0h/
167+
omit if OpenSSL::OPENSSL_LIBRARY_VERSION.include?('OpenSSL 1.1.0h')
168168

169169
http = Net::HTTP.new(HOST, config("port"))
170170
http.use_ssl = true

0 commit comments

Comments
 (0)