Skip to content

Commit

Permalink
feat: change OPTIONS Allow to Headers
Browse files Browse the repository at this point in the history
  • Loading branch information
jakub-c committed Nov 16, 2023
1 parent 45c31d2 commit 1732d82
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ function generateLocationEndpoint(
router.options(currentUrlEnpoint, (context) => {
const allowedRequestHeaders = ["application/json"];
if (location.image) allowedRequestHeaders.push("image/jpeg");
context.response.body = allowedRequestHeaders.join(",");
context.response.headers.set("Allow", allowedRequestHeaders.join(","));
});

if (location.input && location.input_response) {
Expand Down

0 comments on commit 1732d82

Please sign in to comment.