Skip to content

Commit 58c8bb7

Browse files
authored
Return back to default headers (atlassian-api#406)
1 parent 2b9602a commit 58c8bb7

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

atlassian/bamboo.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -358,7 +358,6 @@ def execute_build(self, plan_key, stage=None, execute_all_stages=True, custom_re
358358
:param bamboo_variables: dict {variable=value}
359359
:return: POST request
360360
"""
361-
headers = self.form_token_headers
362361
resource = 'queue/{plan_key}'.format(plan_key=plan_key)
363362
params = {}
364363
if stage:
@@ -371,7 +370,7 @@ def execute_build(self, plan_key, stage=None, execute_all_stages=True, custom_re
371370
for key, value in bamboo_variables.items():
372371
params['bamboo.variable.{}'.format(key)] = value
373372

374-
return self.post(self.resource_url(resource), params=params, headers=headers)
373+
return self.post(self.resource_url(resource), params=params)
375374

376375
def stop_build(self, plan_key):
377376
"""

0 commit comments

Comments
 (0)