Skip to content

Commit

Permalink
Merge pull request #114 from twneale/master
Browse files Browse the repository at this point in the history
Allow StartTLS response to be ascii or bytes (py3k)
  • Loading branch information
alexjikim committed May 3, 2016
2 parents e0a9fa5 + b039dc8 commit f11429c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vertica_python/vertica/connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ def _socket(self):
from ssl import CertificateError, SSLError
raw_socket.sendall(messages.SslRequest().to_bytes())
response = raw_socket.recv(1)
if response == 'S':
if response in ('S', b'S'):
try:
if isinstance(ssl_options, ssl.SSLContext):
raw_socket = ssl_options.wrap_socket(raw_socket, server_hostname=host)
Expand Down

0 comments on commit f11429c

Please sign in to comment.