Skip to content
This repository has been archived by the owner on Jun 21, 2024. It is now read-only.

Commit

Permalink
Bump webhook max size to 5MB
Browse files Browse the repository at this point in the history
  • Loading branch information
bretthoerner committed May 3, 2024
1 parent e2ce466 commit ed9e7c7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hook-api/src/handlers/webhook.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ use hook_common::pgqueue::{NewJob, PgQueue};
use serde::Serialize;
use tracing::{debug, error};

const MAX_BODY_SIZE: usize = 1_000_000;
const MAX_BODY_SIZE: usize = 5_000_000;

#[derive(Serialize, Deserialize)]
pub struct WebhookPostResponse {
Expand Down Expand Up @@ -252,7 +252,7 @@ mod tests {

let app = add_routes(Router::new(), pg_queue);

let bytes: Vec<u8> = vec![b'a'; 1_000_000 * 2];
let bytes: Vec<u8> = vec![b'a'; 5_000_000 * 2];
let long_string = String::from_utf8_lossy(&bytes);

let response = app
Expand Down

0 comments on commit ed9e7c7

Please sign in to comment.