Skip to content

Commit

Permalink
xauth fix
Browse files Browse the repository at this point in the history
  • Loading branch information
fu351 committed Dec 15, 2023
1 parent 8e6aff7 commit acddd8a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion reset.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ router.delete('/reset', async (req, res) => {
console.log('Reset route being used');
const s3 = new AWS.S3();
const bucketName = '461testbucket'; // Replace with your S3 bucket name
const xauth = req.headers['X-Authorization']; //Commented to work with autograder
const xauth = req.headers['x-authorization']; //Commented to work with autograder
console.log(xauth);
if (!xauth) { //need all fields to be present
return res.status(400).json({error: 'There are missing fields in the Request Body'});
}
Expand Down

0 comments on commit acddd8a

Please sign in to comment.