Cookieを付与しなくてもデータを取得できたので、付与しないように変更

This commit is contained in:
shibafu 2019-08-03 00:26:12 +09:00
parent 018532f01f
commit b274c6bc40

View File

@ -24,9 +24,7 @@ class ToranoanaResolver implements Resolver
public function resolve(string $url): Metadata
{
$cookieJar = CookieJar::fromArray(['adflg' => '0'], 'ec.toranoana.jp');
$res = $this->client->get($url, ['cookies' => $cookieJar]);
$res = $this->client->get($url);
if ($res->getStatusCode() === 200) {
$metadata = $this->ogpResolver->parse($res->getBody());