Skip to content

Commit e673fd0

Browse files
committed
Restore axum body limit override for raw minidumps
1 parent 462f13f commit e673fd0

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

relay-server/src/endpoints/minidump.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
use axum::RequestExt;
2-
use axum::extract::Request;
2+
use axum::extract::{DefaultBodyLimit, Request};
33
use axum::response::IntoResponse;
44
use axum::routing::{MethodRouter, post};
55
use bytes::Bytes;
@@ -283,6 +283,7 @@ async fn handle(
283283

284284
pub fn route(config: &Config) -> MethodRouter<ServiceState> {
285285
post(handle)
286+
.route_layer(DefaultBodyLimit::disable())
286287
.route_layer(RequestBodyLimitLayer::new(config.max_attachments_size()))
287288
.route_layer(axum::middleware::from_fn(middlewares::content_length))
288289
}

0 commit comments

Comments
 (0)