mirror of
https://github.com/manualdousuario/marreta.git
synced 2025-09-01 18:20:22 +00:00
corrigida a implementação de useragent customizado
This commit is contained in:
parent
6ab4b133a9
commit
7293e44f58
1 changed files with 5 additions and 0 deletions
|
@ -207,6 +207,11 @@ class URLAnalyzer
|
|||
}
|
||||
}
|
||||
|
||||
// Adiciona headers específicos do domínio se existirem
|
||||
if ($domainRules !== null && isset($domainRules['userAgent'])) {
|
||||
$curlOptions[CURLOPT_USERAGENT] = $domainRules['userAgent'];
|
||||
}
|
||||
|
||||
// Adiciona headers específicos do domínio se existirem
|
||||
if ($domainRules !== null && isset($domainRules['customHeaders'])) {
|
||||
foreach ($domainRules['customHeaders'] as $headerName => $headerValue) {
|
||||
|
|
Loading…
Add table
Reference in a new issue