Skip to content

Commit

Permalink
Update client.py (#1005)
Browse files Browse the repository at this point in the history
Chance made to solve error:

    c.a.p.r.c.security.jersey.XsrfResourceFilter] Use of the 'nocheck' value for X-Atlassian-Token has been deprecated since rest 3.0.0. Please use a value of 'no-check' instead.
  • Loading branch information
EdgeSync authored May 12, 2021
1 parent bb99305 commit ae6b746
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions jira/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -887,7 +887,7 @@ def add_attachment(self, issue, attachment, filename=None):
url,
files={"file": (fname, attachment, "application/octet-stream")},
headers=CaseInsensitiveDict(
{"content-type": None, "X-Atlassian-Token": "nocheck"}
{"content-type": None, "X-Atlassian-Token": "no-check"}
),
)
else:
Expand All @@ -907,7 +907,7 @@ def file_stream():
url,
data=m,
headers=CaseInsensitiveDict(
{"content-type": m.content_type, "X-Atlassian-Token": "nocheck"}
{"content-type": m.content_type, "X-Atlassian-Token": "no-check"}
),
retry_data=file_stream,
)
Expand Down

0 comments on commit ae6b746

Please sign in to comment.