Skip to content

Commit 82c377b

Browse files
committed
fix(admin): add octet-stream content type to /debug/pprof/allocs
1 parent d2272ac commit 82c377b

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/components/admin.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -397,6 +397,7 @@ async fn handle_get_heap() -> Result<Response<Body>, (StatusCode, String)> {
397397
.dump_pprof()
398398
.map_err(|err| (StatusCode::INTERNAL_SERVER_ERROR, err.to_string()))?;
399399
Response::builder()
400+
.header(axum::http::header::CONTENT_TYPE, "application/octet-stream")
400401
.body(Body::from(pprof))
401402
.map_err(|err| (StatusCode::INTERNAL_SERVER_ERROR, err.to_string()))
402403
}

0 commit comments

Comments
 (0)