Skip to content

Commit

Permalink
simplify
Browse files Browse the repository at this point in the history
  • Loading branch information
RickCogley committed Nov 9, 2024
1 parent a1517ae commit e6d73a8
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions serve.ts
Original file line number Diff line number Diff line change
@@ -54,14 +54,14 @@ server.use(csp({
"X-Powered-By": true,
}));

server.use(async (request, next) => {
const response = await next(request);
// server.use(async (request, next) => {
// const response = await next(request);

// Add additional headers to the request
response.headers.set("X-Powered-By", "Lume and sweat, blood, and tears");
// // Add additional headers to the request
// response.headers.set("X-Powered-By", "Lume and sweat, blood, and tears");

return response;
});
// return response;
// });

server.start();

1 comment on commit e6d73a8

@deno-deploy
Copy link
Contributor

@deno-deploy deno-deploy bot commented on e6d73a8 Nov 9, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Failed to deploy:

UNCAUGHT_EXCEPTION

TypeError: headers.set is not a function
    at csp (https://raw.githubusercontent.com/lumeland/csp/refs/heads/main/mod.ts:238:13)
    at file:///src/serve.ts:43:12

Please sign in to comment.