Commit b1d15aef authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

HTTP: add LibVLC version to User-Agent correctly

(cherry picked from commit 3d37be4f70d386e9751ec41309f82475ffae0ad8)

Conflicts:

	share/lua/sd/appletrailers.lua
parent 61d42cc5
......@@ -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 )
......
......@@ -53,7 +53,7 @@ function parse()
else
extraname = ""
end
table.insert( p, { path = path; name = title..extraname; description = description; url = vlc.path; options = ":http-user-agent=\"QuickTime vlc lua edition\"" } )
table.insert( p, { path = path; name = title..extraname; description = description; url = vlc.path; options = ":http-user-agent=\"QuickTime\"" } )
end
if string.match( line, "<title>" )
then
......
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