Skip to content

Commit

Permalink
Fix bug in builder post request
Browse files Browse the repository at this point in the history
  • Loading branch information
catherinepapad committed Dec 31, 2023
1 parent 2f7f547 commit 35cceb1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions web-app/src/builder.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,9 @@ document.addEventListener('DOMContentLoaded', function () {
// Configuration for the fetch request
const requestOptions = {
method: 'POST',
headers: {
'Content-Type': 'application/json',
},
body: JSON.stringify(newBuild) // Convert the data to JSON format
};

Expand Down

0 comments on commit 35cceb1

Please sign in to comment.