Skip to content

Commit bec1307

Browse files
authored
Remove the leading slash. (#18)
1 parent 56ea86b commit bec1307

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/sink/imp.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ impl MoqSink {
167167
.await
168168
.expect("failed to connect");
169169

170-
let path = url.path().to_string();
170+
let path = url.path().strip_prefix('/').unwrap().to_string();
171171

172172
let broadcast = moq_karp::BroadcastProducer::new(session, path).unwrap();
173173
let media = moq_karp::cmaf::Import::new(broadcast);

0 commit comments

Comments
 (0)