Skip to content

Commit e03448d

Browse files
committed
Fix bug in agentzero::getHints() where a variable wasn't set if you pass your own headers.
1 parent 4c41271 commit e03448d

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/agentzero.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,7 @@ public static function getHints(?array $headers = null) : array {
161161
foreach ($headers AS $key => $item) {
162162
$values[\strtoupper(\str_replace('-', '_', $key))] = $item;
163163
}
164+
$prefix = '';
164165
}
165166
$hints = [
166167
'sec-ch-ua-mobile',

0 commit comments

Comments
 (0)