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: { http: {
path: `/notifyIssues`, path: `/notifyIssues`,
verb: 'GET' verb: 'POST'
} }
}); });

View File

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

View File

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

View File

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

View File

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

View File

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