Skip to content

Commit

Permalink
doc(stream): add comment for streaming_url fn
Browse files Browse the repository at this point in the history
  • Loading branch information
tymmesyde committed Dec 20, 2023
1 parent 24c859d commit d5cacc0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/types/resource/stream.rs
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,8 @@ impl Stream {
pub fn streaming_url(&self, streaming_server_url: Option<&Url>) -> Option<String> {
match (&self.source, streaming_server_url) {
(StreamSource::Url { url }, streaming_server_url) if url.scheme() != "magnet" => {
// If proxy headers are set and streaming server is available, build the proxied streaming url from streaming server url
// Otherwise return the url
match (&self.behavior_hints.proxy_headers, streaming_server_url) {
(
Some(StreamProxyHeaders { request, response }),
Expand Down

0 comments on commit d5cacc0

Please sign in to comment.