Skip to content
This repository has been archived by the owner on Mar 22, 2024. It is now read-only.

Commit

Permalink
Merge pull request #661 from Financial-Times/uppercase-http-methods
Browse files Browse the repository at this point in the history
Uppercase all HTTP verbs for native Fetch support
  • Loading branch information
olusoladavid authored Mar 21, 2023
2 parents 85f53ba + 9a790d3 commit 7614b5a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/heroku-config-vars.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ class HerokuConfigVars {
*/
set (patch) {
return this.makeApiCall({
method: 'patch',
method: 'PATCH',
body: JSON.stringify(patch)
});
}
Expand Down
4 changes: 2 additions & 2 deletions lib/review-apps.js
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ const deleteReviewAppAndThrowError = async ({ reviewApp, commit, appId }) => {

const headers = await herokuHeaders({ useReviewAppApi: true });

await performFetch(getReviewAppUrl(reviewApp.id), { headers, method: 'delete' });
await performFetch(getReviewAppUrl(reviewApp.id), { headers, method: 'DELETE' });

} catch (error) {

Expand Down Expand Up @@ -261,7 +261,7 @@ const createReviewApp = async ({ pipelineId, repoName, commit, branch, githubTok
}
};

const response = await fetch(REVIEW_APPS_URL, { headers, method: 'post', body: JSON.stringify(body) });
const response = await fetch(REVIEW_APPS_URL, { headers, method: 'POST', body: JSON.stringify(body) });

return response;

Expand Down

0 comments on commit 7614b5a

Please sign in to comment.