Skip to content

Commit

Permalink
fix the Request bug
Browse files Browse the repository at this point in the history
  • Loading branch information
dcto committed Dec 20, 2021
1 parent 08c5107 commit 7cfaf67
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/Http/Request.php
Original file line number Diff line number Diff line change
Expand Up @@ -774,11 +774,10 @@ public function browser($type = null)
'Safari'=>'Safari',
'Netscape'=>'Netscape'
];
$browsers = config('browerser');
$browsers = array_merge($browsers, (array) config('browerser', []));
foreach($browsers as $tag => $browser){
if (stripos($userAgent, $tag)) return $browser;
}
return null;
}


Expand Down

0 comments on commit 7cfaf67

Please sign in to comment.