Skip to content

Commit af4bbbc

Browse files
committed
use :http-user-agent instead of --http-user-agent
See https://stackoverflow.com/a/52127734/109747
1 parent 4856caa commit af4bbbc

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

flutter_vlc_player_platform_interface/lib/src/utils/options/vlc_http_options.dart

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ class VlcHttpOptions {
3030
/// HTTP server, i.e. the HTTP "User-Agent". Name and version must be
3131
/// separated by a forward slash, e.g. "FooBar/1.2.3".
3232
static String httpUserAgent(String userAgent) {
33-
return '--http-user-agent=$userAgent';
33+
// Use colon (:) instead of dashes.
34+
// See https://stackoverflow.com/a/52127734/109747
35+
return ':http-user-agent=$userAgent';
3436
}
3537
}

0 commit comments

Comments
 (0)