scottlamb / retina

High-level RTSP multimedia streaming library, in Rust
https://crates.io/crates/retina
Apache License 2.0
218 stars 46 forks source link

Add default User-Agent header #87

Closed Curid closed 7 months ago

Curid commented 10 months ago

I have a generic S3VC camera that responds with Unauthorized for DESCRIBE requests without a user agent header.

The spec doesn't mandate it but most libraries seem to have default value.

https://www.rfc-editor.org/rfc/rfc2326#section-12 https://github.com/FFmpeg/FFmpeg/blob/fc993e7a53c2e7a18f8d49b3a52cadf47580b82c/libavformat/rtsp.c#L103 https://github.com/AlexxIT/go2rtc/commit/da3137b6f08697cb7d5db0a3ee433148734996c4