diff --git a/jenkins/__init__.py b/jenkins/__init__.py index 9717f58..97d3f64 100755 --- a/jenkins/__init__.py +++ b/jenkins/__init__.py @@ -1065,7 +1065,7 @@ def copy_job(self, from_name, to_name): 'folder must be the same' % (from_name, to_name)) self.jenkins_open(requests.Request( - 'POST', self._build_url(COPY_JOB, locals()) + 'POST', self._build_url(COPY_JOB, locals()), headers={'Content-Type': 'multipart/form-data'} )) self.assert_job_exists(to_name, 'create[%s] failed')