Cookieを付与しなくてもデータを取得できたので、付与しないように変更
This commit is contained in:
parent
018532f01f
commit
b274c6bc40
@ -24,9 +24,7 @@ class ToranoanaResolver implements Resolver
|
|||||||
|
|
||||||
public function resolve(string $url): Metadata
|
public function resolve(string $url): Metadata
|
||||||
{
|
{
|
||||||
$cookieJar = CookieJar::fromArray(['adflg' => '0'], 'ec.toranoana.jp');
|
$res = $this->client->get($url);
|
||||||
|
|
||||||
$res = $this->client->get($url, ['cookies' => $cookieJar]);
|
|
||||||
if ($res->getStatusCode() === 200) {
|
if ($res->getStatusCode() === 200) {
|
||||||
$metadata = $this->ogpResolver->parse($res->getBody());
|
$metadata = $this->ogpResolver->parse($res->getBody());
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user