Skip to content

Commit

Permalink
Dump all POST requests to console
Browse files Browse the repository at this point in the history
  • Loading branch information
Rosuav committed Dec 13, 2024
1 parent 8a7033b commit 9a6d295
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions modules/http/chan_calendar.pike
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ __async__ mapping(string:mixed)|string http_request(Protocols.HTTP.Server.Reques
return "Passing it along.";
}
//TODO: Handle webhooks, notably sending updates all any time the calendar changes
if (req->request_type == "POST") {
werror("POSSIBLE CALENDAR WEBHOOK\nHeaders %O\nBody: %O\n", req->request_headers, req->body_raw);
return "Okay.";
}
if (!req->misc->is_mod) return render_template("login.md", req->misc->chaninfo);
return render(req, ([
"vars": (["ws_group": ""]),
Expand Down

0 comments on commit 9a6d295

Please sign in to comment.