Skip to content

Commit

Permalink
Update Header.php
Browse files Browse the repository at this point in the history
  • Loading branch information
summercms committed Jan 19, 2021
1 parent 91beaa8 commit 714131c
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions src/Analyser/Header.php
Expand Up @@ -62,11 +62,11 @@ private function &analyseHeaders()
}

if ($header = $this->getHeader('X-Bolt-Phone-UA')) {
$this->analyseBaiduHeader($header);
$this->analyseBoltHeader($header);
}

if ($header = $this->getHeader('X-Skyfire-Phone')) {
$this->analyseBaiduHeader($header);
$this->analyseSkyfireHeader($header);
}

/* Analyse Android WebView browser ids */
Expand Down Expand Up @@ -97,6 +97,16 @@ private function analyseBaiduHeader($header)
new Header\Baidu($header, $this->data);
}

private function analyseBoltHeader($header)
{
new Header\Bolt($header, $this->data);
}

private function analyseSkyfireHeader($header)
{
new Header\Skyfire($header, $this->data);
}

private function analyseOperaMiniPhone($header)
{
new Header\OperaMini($header, $this->data);
Expand Down

0 comments on commit 714131c

Please sign in to comment.