Skip to content

Commit 51c2456

Browse files
authored
fix(bugfix): SendCustomHeaderForAddAttachmentApi as per the jira api doc. (#152)
1 parent 29c7b3f commit 51c2456

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/version2/issueAttachments.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -312,6 +312,7 @@ export class IssueAttachments {
312312
url: `/rest/api/2/issue/${parameters.issueIdOrKey}/attachments`,
313313
method: 'POST',
314314
headers: {
315+
'X-Atlassian-Token': 'no-check',
315316
'Content-Type': 'multipart/form-data',
316317
...formData.getHeaders?.(),
317318
},

src/version3/issueAttachments.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -312,6 +312,7 @@ export class IssueAttachments {
312312
url: `/rest/api/3/issue/${parameters.issueIdOrKey}/attachments`,
313313
method: 'POST',
314314
headers: {
315+
'X-Atlassian-Token': 'no-check',
315316
'Content-Type': 'multipart/form-data',
316317
...formData.getHeaders?.(),
317318
},

0 commit comments

Comments
 (0)