Use POST request method instead of GET
gitea/salix/pipeline/head This commit looks good Details

This commit is contained in:
Joan Sanchez 2022-09-13 13:53:44 +02:00
parent f3fe19360a
commit 5a46444875
6 changed files with 8 additions and 8 deletions

View File

@ -8,7 +8,7 @@ module.exports = Self => {
},
http: {
path: `/notifyIssues`,
verb: 'GET'
verb: 'POST'
}
});

View File

@ -10,7 +10,7 @@ module.exports = Self => {
},
http: {
path: `/sendQueued`,
verb: 'GET'
verb: 'POST'
}
});

View File

@ -12,7 +12,7 @@ module.exports = Self => {
},
http: {
path: `/deleteTrashFiles`,
verb: 'GET'
verb: 'POST'
}
});

View File

@ -12,7 +12,7 @@ module.exports = Self => {
},
http: {
path: `/updateData`,
verb: 'GET'
verb: 'POST'
}
});

View File

@ -12,7 +12,7 @@ module.exports = Self => {
},
http: {
path: `/downloadImages`,
verb: 'GET'
verb: 'POST'
}
});

View File

@ -11,7 +11,7 @@ module.exports = Self => {
},
http: {
path: `/checkInbox`,
verb: 'GET'
verb: 'POST'
}
});
@ -58,8 +58,8 @@ module.exports = Self => {
emailBody = bufferCopy.toUpperCase().trim();
const bodyPositionOK = emailBody.match(/\bOK\b/i);
if (bodyPositionOK != null && (bodyPositionOK.index == 0 || bodyPositionOK.index == 122))
const bodyPositionIndex = (bodyPositionOK.index == 0 || bodyPositionOK.index == 122);
if (bodyPositionOK != null && bodyPositionIndex)
isEmailOk = true;
else
isEmailOk = false;