in jruby, cipher is a string, act accordingly

This commit is contained in:
HoneyryderChuck 2019-03-16 04:08:03 +00:00
parent f8688c4d61
commit 5faba24d82

View File

@ -116,7 +116,7 @@ module HTTPX
return super unless nextstate == :negotiated
server_cert = @io.peer_cert
"SSL connection using #{@io.ssl_version} / #{@io.cipher.first}\n" \
"SSL connection using #{@io.ssl_version} / #{Array(@io.cipher).first}\n" \
"ALPN, server accepted to use #{protocol}\n" \
"Server certificate:\n" \
" subject: #{server_cert.subject}\n" \