]> git.sesse.net Git - vlc/blobdiff - modules/access/http.c
HTTP: add LibVLC version to User-Agent correctly
[vlc] / modules / access / http.c
index 747eba0675886bedc68ecb8786135b9361c5ed68..94355047918333d12e3f817b83b5d482c1848170 100644 (file)
@@ -1286,7 +1286,8 @@ static int Request( access_t *p_access, uint64_t i_tell )
         }
     }
     /* User Agent */
-    net_Printf( p_access, p_sys->fd, pvs, "User-Agent: %s\r\n",
+    net_Printf( p_access, p_sys->fd, pvs,
+                "User-Agent: %s LibVLC/"VERSION"\r\n",
                 p_sys->psz_user_agent );
     /* Offset */
     if( p_sys->i_version == 1 && ! p_sys->b_continuous )