diff --git a/SAS/TMSS/client/lib/tmss_http_rest_client.py b/SAS/TMSS/client/lib/tmss_http_rest_client.py index e2604559ccc200710eddb689fb051125c98e2f51..d736c434d3495a10795117fb6f1ddaad016ae556 100644 --- a/SAS/TMSS/client/lib/tmss_http_rest_client.py +++ b/SAS/TMSS/client/lib/tmss_http_rest_client.py @@ -188,6 +188,8 @@ class TMSSsession(object): request_method = self.session.options if 'csrftoken' in self.session.cookies: + if headers is None: + headers = dict() headers.update({'Referer': self.host_url, 'X-CSRFToken': self.session.cookies['csrftoken']}) for attempt_nr in range(attempt_count):