diff --git a/influxdb/client.py b/influxdb/client.py index e38d4b78..10d50d6c 100644 --- a/influxdb/client.py +++ b/influxdb/client.py @@ -15,6 +15,7 @@ import requests.exceptions from six.moves import xrange from six.moves.urllib.parse import urlparse +import requests.adapters from influxdb.line_protocol import make_lines, quote_ident, quote_literal from influxdb.resultset import ResultSet @@ -99,11 +100,10 @@ def __init__(self, self.udp_socket = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) self._scheme = "http" - if ssl is True: self._scheme = "https" - self._session.mount(self._scheme, adapter) + self._session.mount(self._scheme + '://', adapter) if proxies is None: self._proxies = {} pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy