Skip to content

Commit

Permalink
Remove unnecessary X-Remote HTTP header in AJAX request (go-gitea#1…
Browse files Browse the repository at this point in the history
  • Loading branch information
wxiaoguang authored and Stelios Malathouras committed Mar 28, 2022
1 parent 238a4d4 commit 16a4211
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 7 deletions.
1 change: 0 additions & 1 deletion web_src/js/features/repo-issue.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@ function updateDeadline(deadlineString) {
}),
headers: {
'X-Csrf-Token': csrfToken,
'X-Remote': true,
},
contentType: 'application/json',
type: 'POST',
Expand Down
6 changes: 0 additions & 6 deletions web_src/js/features/repo-projects.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ async function initRepoProjectSortable() {
data: JSON.stringify({sorting: i, color: rgbToHex($(column).css('backgroundColor'))}),
headers: {
'X-Csrf-Token': csrfToken,
'X-Remote': true,
},
contentType: 'application/json',
method: 'PUT',
Expand All @@ -47,7 +46,6 @@ async function initRepoProjectSortable() {
$.ajax(`${url}/${issue}`, {
headers: {
'X-Csrf-Token': csrfToken,
'X-Remote': true,
},
contentType: 'application/json',
type: 'POST',
Expand Down Expand Up @@ -90,7 +88,6 @@ export default function initRepoProject() {
data: JSON.stringify({title: projectTitleInput.val(), color: projectColorInput.val()}),
headers: {
'X-Csrf-Token': csrfToken,
'X-Remote': true,
},
contentType: 'application/json',
method: 'PUT',
Expand All @@ -114,7 +111,6 @@ export default function initRepoProject() {
url: $(this).data('url'),
headers: {
'X-Csrf-Token': csrfToken,
'X-Remote': true,
},
contentType: 'application/json',
});
Expand All @@ -130,7 +126,6 @@ export default function initRepoProject() {
url: $(this).data('url'),
headers: {
'X-Csrf-Token': csrfToken,
'X-Remote': true,
},
contentType: 'application/json',
method: 'DELETE',
Expand All @@ -151,7 +146,6 @@ export default function initRepoProject() {
data: JSON.stringify({title: boardTitle.val(), color: projectColorInput.val()}),
headers: {
'X-Csrf-Token': csrfToken,
'X-Remote': true,
},
contentType: 'application/json',
method: 'POST',
Expand Down

0 comments on commit 16a4211

Please sign in to comment.