Skip to content

Commit

Permalink
feat: Allow passing addtional metadata via METADATA header
Browse files Browse the repository at this point in the history
  • Loading branch information
Threated committed Feb 20, 2024
1 parent b63a259 commit 58fc15e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -112,11 +112,12 @@ async fn send_file(
CONFIG.beam_id.app_name(),
CONFIG.beam_id.as_ref().splitn(3, '.').nth(2).expect("Invalid app id")
));
const RELEVANT_HEADERS: [HeaderName; 4] = [
const RELEVANT_HEADERS: [HeaderName; 5] = [
header::CONTENT_LENGTH,
header::CONTENT_DISPOSITION,
header::CONTENT_ENCODING,
header::CONTENT_TYPE
header::CONTENT_TYPE,
header::HeaderName::from_static("metadata")
];
let related_headers = headers
.into_iter()
Expand Down

0 comments on commit 58fc15e

Please sign in to comment.