Where should I add a header in python-jira authentication?
My header should be like the below. load balancer is redirecting request based on dns name only. That's why it is required for me.
Header:
'host': 'DNS_of_server'
I have the below code, where should I add the header in this? I couldn't able to find that in the documentation.
options = {
'server': 'https://ip-address',
}
try:
jira = JIRA(options, basic_auth=(user, passwd))
except JIRAError as e:
print(e.status_code, e.text)
It works fine in curl command when I pass header parameter with curl.