Headers for Samsung TV to work
This commit is contained in:
parent
242a5c053a
commit
0cb34d9bf1
1 changed files with 10 additions and 0 deletions
|
|
@ -346,6 +346,16 @@ impl HttpApi {
|
||||||
let mut output_headers = HeaderMap::new();
|
let mut output_headers = HeaderMap::new();
|
||||||
output_headers.insert("Accept-Ranges", HeaderValue::from_static("bytes"));
|
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) {
|
if let Ok(mime) = state.torrent_file_mime_type(idx, file_id) {
|
||||||
output_headers.insert(
|
output_headers.insert(
|
||||||
http::header::CONTENT_TYPE,
|
http::header::CONTENT_TYPE,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue