Releases: php-http/client-common
Releases · php-http/client-common
2.7.2
- Updated code to not raise warnings for nullable parameters in PHP 8.4.
- Cleaned up PHPDoc comments.
2.7.1
- Allow installation with Symfony 7.
2.7.0
- Dropped
php-http/message-factory
from composer requirements as it is abandoned and this package does not actually use it.
2.6.1
- Allow installation with http-message (PSR-7) version 2 in addition to version 1.
- Support for PHP 8.2
2.6.0
- [RedirectPlugin] Redirection of non GET/HEAD requests with a body now removes the body on follow-up requests, if the
HTTP method changes. To do this, the plugin needs to find a PSR-7 stream implementation. If none is found, you can
explicitly pass a PSR-17 StreamFactoryInterface in the stream_factory
option.
To keep sending the body in all cases, set the stream_factory
option to null explicitly.
2.5.1
- [RedirectPlugin] Fixed handling of redirection to different domain with default port
- [RedirectPlugin] Fixed false positive circular detection in RedirectPlugin in cases when target location does not contain path
2.5.0
Added
- Support for Symfony 6
- Support for PHP 8.1
Changed
- Dropped support for Symfony 2 and 3 - please keep using version 2.4.0 of this library if you can't update Symfony.
1.11.0
- Backported from version 2: AddPathPlugin: Do not add the prefix if the URL already has the same prefix.
2.4.0
Added
strict
option to RedirectPlugin
to allow preserving the request method on redirections with status 300, 301 and 302.
2.3.0
Fixed
- HttpMethodsClient with PSR RequestFactory
- Bug in the cookie plugin with empty cookies
- Bug when parsing null-valued date headers
Changed
- Deprecation when constructing a HttpMethodsClient with PSR RequestFactory but without a StreamFactory