diff --git a/stix_shifter_utils/stix_transmission/utils/RestApiClientAsync.py b/stix_shifter_utils/stix_transmission/utils/RestApiClientAsync.py index 54c827531..b14a146ea 100644 --- a/stix_shifter_utils/stix_transmission/utils/RestApiClientAsync.py +++ b/stix_shifter_utils/stix_transmission/utils/RestApiClientAsync.py @@ -61,7 +61,7 @@ def __init__(self, host, port=None, headers={}, url_modifier_function=None, cert #To enable proxy, set the environment variable "STIX_SHIFTER_ENABLE_TRUST_ENV" to true. This option will allow the connection #to use the system environments proxy settings. This can be done by setting the "https_proxy" environment variable to #"http(s)://[username]:[password]@[hostname]/[ipaddress]:[port]". Alternative proxy schema's may or may not work. - self.trust_env_enabled = os.environ.get("STIX_SHIFTER_ENABLE_TRUST_ENV", False).lower() + self.trust_env_enabled = os.environ.get("STIX_SHIFTER_ENABLE_TRUST_ENV", "False").lower() if self.trust_env_enabled == "true": self.trust_env_enabled = True else: