Skip to content

Commit a778468

Browse files
Merge pull request #420 from afriza/colon-http-user-agent
use `:http-user-agent` instead of `--http-user-agent`
2 parents 5b8dede + af4bbbc commit a778468

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)