improve webhook parsing

This commit is contained in:
qpismont committed 2026-06-01 21:10:45 +00:00
1 parent 7e3b49ad76
commit 0a22be252c
6 files changed
+193 -284

No files matched your search

+3
View File
@@ -0,0 +1,3 @@
pub const GITEA_SIG_HEADER_NAME: &str = "x-gitea-signature";
pub const GITEA_EVENT_TYPE_HEADER_NAME: &str = "x-gitea-event-type";
pub const MAX_WEBHOOK_BODY_SIZE: usize = 1024 * 1024; // 1 MiB