Skip to content

Commit

Permalink
Headers for Samsung TV to work
Browse files Browse the repository at this point in the history
  • Loading branch information
ikatson committed Sep 2, 2024
1 parent 242a5c0 commit 0cb34d9
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions crates/librqbit/src/http_api.rs
Original file line number Diff line number Diff line change
Expand Up @@ -346,6 +346,16 @@ impl HttpApi {
let mut output_headers = HeaderMap::new();
output_headers.insert("Accept-Ranges", HeaderValue::from_static("bytes"));

output_headers.insert(
"transferMode.dlna.org",
HeaderValue::from_static("Streaming"),
);

output_headers.insert(
"contentFeatures.dlna.org",
HeaderValue::from_static("DLNA.ORG_OP=01"),
);

if let Ok(mime) = state.torrent_file_mime_type(idx, file_id) {
output_headers.insert(
http::header::CONTENT_TYPE,
Expand Down

0 comments on commit 0cb34d9

Please sign in to comment.