This repository was archived by the owner on Jun 28, 2024. It is now read-only.
This repository was archived by the owner on Jun 28, 2024. It is now read-only.
[Bug] ServerResponseException: array_keys($responseHeader, 'Retry-After')
always return empty. #19
Closed
Description
Hi,
I noticed that there is a bug at ServerResponseException.php
on line 28: array_keys($responseHeader, 'Retry-After')
will always return []
even if Retry-After
header is present.
Proposed solution: It should be array_key_exists('Retry-After', $responseHeader)
so that it can return true
when Retry-After
header is present.