src/Extractor/HttpClient.php
private function getAccept($url, $httpHeader = [])
    {
        if (!empty($httpHeader['accept'])) {
            $this->logger->info('Found accept header "{accept}" for url "{url}" from site config', ['accept' => $httpHeader['accept'], 'url' => $url]);

            return $httpHeader['accept'];
        }

        return false;
    }
private function getAccept($url, $httpHeader = [])
    {
        if (!empty($httpHeader['accept'])) {
            $this->logger->info('Found accept header "{accept}" for url "{url}" from site config', ['accept' => $httpHeader['accept'], 'url' => $url]);

            return $httpHeader['accept'];
        }

        return false;
    }
private function getAccept ( $ url , $ httpHeader = [ ] ) { if ( ! empty ( $ httpHeader [ 'accept' ] ) ) { $ this -> logger -> info ( 'Found accept header "{accept}" for url "{url}" from site config' , [ 'accept' => $ httpHeader [ 'accept' ] , 'url' => $ url ] ) ; return $ httpHeader [ 'accept' ] ; } return false ; }
Find an accept header for this url.
Based on the site config, it will return the accept if any.
Otherwise it will return false.

@param string $url        Absolute url
@param array  $httpHeader Custom HTTP Headers from SiteConfig

@return string|false
Find an accept header for this url . Based on the site config it will return the accept if any . Otherwise it will return false .