panther
panther copied to clipboard
getHeader from getInternalResponse in panther always return an empty array
Symfony version(s) affected: 5.2
Description
I sent my request by panther and intended to get the response so I used getInternalResponse
method. by using this method I was able to get the body and status code without any problem but for header, I only got an empty array. I think this is a bug since I checked everything multiple times.
How to reproduce
$client = Client::createChromeClient(); $client->request('GET', 'https://google.com'); $client->getInternalResponse()->getHeaders();
Of course, stutus is always 200 even when the server 404
Same issue here, seems related to #548 and #67