[vlc-devel] [vlc-commits] commit: access_http: use the user agent provided by the user: fix #4162 ( Rémi Duraffort )

Ilkka Ollakka ileoo at videolan.org
Tue Sep 14 20:49:18 CEST 2010


On Tue, Sep 14, 2010 at 07:16:53PM +0200, git at videolan.org wrote:
> vlc | branch: master | Rémi Duraffort <ivoire at videolan.org> | Tue Sep 14 19:16:00 2010 +0200| [911b23af510484805d35525eb99aec6afc3bb957] | committer: Rémi Duraffort 

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

This actually just removes mention of libvlc on user-agent, and reverts
earlier commit. But doesn't this just enable to use libvlc as bot (as
had happened with vimeo iirc) without givin any really benefit to other
cases?


>  modules/access/http.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)

> diff --git a/modules/access/http.c b/modules/access/http.c
> index 29da639..398c38b 100644
> --- a/modules/access/http.c
> +++ b/modules/access/http.c
> @@ -1285,7 +1285,7 @@ static int Request( access_t *p_access, uint64_t i_tell )
>      }
>      /* User Agent */
>      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 );
>      /* Offset */
>      if( p_sys->i_version == 1 && ! p_sys->b_continuous )

> _______________________________________________
> vlc-commits mailing list
> vlc-commits at videolan.org
> http://mailman.videolan.org/listinfo/vlc-commits


-- 
Ilkka Ollakka
There's no real need to do housework -- after four years it doesn't get
any worse.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 490 bytes
Desc: not available
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20100914/21e4140b/attachment.sig>


More information about the vlc-devel mailing list