jira: Allow overriding https.
MODIFY
zulip_bots/zulip_bots/bots/jira/jira.py
zulip_bots/zulip_bots/bots/jira/jira.py
@@ -127,6 +127,11 @@ class JiraHandler:
raise KeyError('No `domain` was specified')
self.auth = make_jira_auth(username, password)
+
+ # Allow users to override the HTTP scheme
+ if re.match(r'^https?://', domain, re.IGNORECASE):
+ self.domain_with_protocol = domain
+ else:
self.domain_with_protocol = 'https://' + domain
def handle_message(self, message: Dict[str, str], bot_handler: Any) -> None:

jira: Allow overriding https.