This commit is contained in:
parent
204bc49b98
commit
9ca1f99991
1 changed files with 1 additions and 4 deletions
|
@ -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") || "");
|
||||
|
|
Loading…
Reference in a new issue