Skip to content

Commit

Permalink
Fix: openssl add cert error on ruby 3.1
Browse files Browse the repository at this point in the history
  • Loading branch information
ylecuyer committed Jul 24, 2023
1 parent 2787792 commit c6d96a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/faye/websocket/ssl_verifier.rb
Expand Up @@ -80,7 +80,7 @@ def parse_cert(cert_text)
def store_cert(certificate)
@cert_store.add_cert(certificate)
rescue OpenSSL::X509::StoreError => error
raise error unless error.message == 'cert already in hash table'
raise error unless error.message =~ /cert already in hash table/
end

def identity_verified?
Expand Down

0 comments on commit c6d96a3

Please sign in to comment.