fix: use post
All checks were successful
ci / docker (push) Successful in 4m41s

This commit is contained in:
Tine 2024-04-22 19:39:04 +02:00
parent 204bc49b98
commit 9ca1f99991
Signed by: mentos1386
SSH key fingerprint: SHA256:MNtTsLbihYaWF8j1fkOHfkKNlnN1JQfxEU/rBU8nCGw

View file

@ -35,9 +35,6 @@ app.get("/.well-known/matrix/support", (c) =>
// .well-known for webfinger - tailscale
app.get("/.well-known/webfinger", (c) => {
console.log(c.req.query());
console.log(c.req.header());
const resource = c.req.query("resource");
if (!resource) {
c.status(400);
@ -83,7 +80,7 @@ app.get("/js/script.js", async (c) => {
return c.body(script);
});
app.get("/api/event", (c) => {
app.post("/api/event", (c) => {
const request = new Request(c.req.raw);
request.headers.delete("Cookie");
request.headers.set("X-Forwarded-For", c.req.header("host") || "");