Skip to content

Commit

Permalink
Added headers for success response
Browse files Browse the repository at this point in the history
  • Loading branch information
cultpodcasts committed Feb 20, 2024
1 parent 26d02b9 commit b1e270a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ export default {
let result = await insert.run();

if (result.success) {
return new Response();
return new Response("Submitted", { headers });
} else {
return new Response("Unable to accept", { headers, status: 400 });
}
Expand Down

0 comments on commit b1e270a

Please sign in to comment.