diff --git a/pyral/restapi.py b/pyral/restapi.py index 552919d..43acb9c 100644 --- a/pyral/restapi.py +++ b/pyral/restapi.py @@ -218,7 +218,8 @@ def __init__(self, server=SERVER, user=None, password=None, apikey=None, ## print("\n requests lib in %s" % requests.__file__) ## self.session = requests.Session() - self.session.headers = RALLY_REST_HEADERS + self.session.headers = RALLY_REST_HEADERS.copy() + if 'headers' in kwargs: for header_name, header_value in kwargs['headers'].items(): matching_header = [key for key in self.session.headers