amphp / http-client

An advanced async HTTP client library for PHP, enabling efficient, non-blocking, and concurrent requests and responses.
https://amphp.org/http-client
MIT License
702 stars 67 forks source link

Header "upgrade" existence check on Http\HttpStatus::SWITCHING_PROTOCOLS #323

Closed rekryt closed 1 year ago

rekryt commented 1 year ago
$connection = [ 'upgrade' => null ];
echo isset($connection['upgrade']); // false
kelunik commented 1 year ago

Thanks! I've already included a newer version of the fix in #322.