Commit f2ada246 authored by Rémi Duraffort's avatar Rémi Duraffort

access_http: use the user agent provided by the user: fix #4162

(cherry picked from commit 911b23af510484805d35525eb99aec6afc3bb957)
Signed-off-by: default avatarRémi Duraffort <ivoire@videolan.org>
parent 44a02408
...@@ -1288,7 +1288,7 @@ static int Request( access_t *p_access, uint64_t i_tell ) ...@@ -1288,7 +1288,7 @@ static int Request( access_t *p_access, uint64_t i_tell )
} }
/* User Agent */ /* User Agent */
net_Printf( p_access, p_sys->fd, pvs, net_Printf( p_access, p_sys->fd, pvs,
"User-Agent: %s LibVLC/"VERSION"\r\n", "User-Agent: %s\r\n",
p_sys->psz_user_agent ); p_sys->psz_user_agent );
/* Offset */ /* Offset */
if( p_sys->i_version == 1 && ! p_sys->b_continuous ) if( p_sys->i_version == 1 && ! p_sys->b_continuous )
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment