Skip to content

Commit 707bcdb

Browse files
authored
Update confluence.py (#697)
X-Atlassian-Token should be set to “no-check” instead of “nocheck”. See https://developer.atlassian.com/server/confluence/form-token-handling/
1 parent 861f9b7 commit 707bcdb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

atlassian/confluence.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -846,7 +846,7 @@ def attach_content(
846846
"comment": comment,
847847
"minorEdit": "true",
848848
}
849-
headers = {"X-Atlassian-Token": "nocheck", "Accept": "application/json"}
849+
headers = {"X-Atlassian-Token": "no-check", "Accept": "application/json"}
850850
path = "rest/api/content/{page_id}/child/attachment".format(page_id=page_id)
851851
# Check if there is already a file with the same name
852852
attachments = self.get(path=path, headers=headers, params={"filename": name})

0 commit comments

Comments
 (0)