Fixed iPhone/iPad/iPod user agent detection.
This commit is contained in:
parent
8c1bb07403
commit
185d75e0d9
1 changed files with 1 additions and 1 deletions
|
@ -155,7 +155,7 @@ namespace Mist {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
appleCompat = (H.GetHeader("User-Agent").find("Apple") != std::string::npos);
|
appleCompat = (H.GetHeader("User-Agent").find("iPad") != std::string::npos) || (H.GetHeader("User-Agent").find("iPod") != std::string::npos)|| (H.GetHeader("User-Agent").find("iPhone") != std::string::npos);
|
||||||
bool VLCworkaround = false;
|
bool VLCworkaround = false;
|
||||||
if (H.GetHeader("User-Agent").substr(0, 3) == "VLC"){
|
if (H.GetHeader("User-Agent").substr(0, 3) == "VLC"){
|
||||||
std::string vlcver = H.GetHeader("User-Agent").substr(4);
|
std::string vlcver = H.GetHeader("User-Agent").substr(4);
|
||||||
|
|
Loading…
Add table
Reference in a new issue