Always use TLS with HTTP20Connection
This commit is contained in:
committed by
Sergey Petrov
parent
d3d75d1073
commit
d071ec1864
@@ -17,7 +17,7 @@ class Credentials(object):
|
|||||||
def create_connection(self, server, port, proto, proxy_host=None, proxy_port=None):
|
def create_connection(self, server, port, proto, proxy_host=None, proxy_port=None):
|
||||||
# self.__ssl_context may be none, and that's fine.
|
# self.__ssl_context may be none, and that's fine.
|
||||||
return HTTP20Connection(server, port, ssl_context=self.__ssl_context, force_proto=proto or 'h2',
|
return HTTP20Connection(server, port, ssl_context=self.__ssl_context, force_proto=proto or 'h2',
|
||||||
proxy_host=proxy_host, proxy_port=proxy_port)
|
secure=True, proxy_host=proxy_host, proxy_port=proxy_port)
|
||||||
|
|
||||||
def get_authorization_header(self, topic):
|
def get_authorization_header(self, topic):
|
||||||
return None
|
return None
|
||||||
|
|||||||
Reference in New Issue
Block a user