zend-http 2.8.0
Added
-
#135 adds a package suggestion of paragonie/certainty, which provides automated
management of cacert.pem files. -
#143 adds support for PHP 7.2.
Changed
- Nothing.
Deprecated
- Nothing.
Removed
- Nothing.
Fixed
-
#140 fixes retrieval of headers when multiple headers of the same name
are added to theHeaders
instance; it now ensures that the last header added of the same
type is retrieved when it is not a multi-value type. Previous values are overwritten. -
#112 provides performance improvements when parsing large chunked messages.
-
introduces changes to
Response::fromString()
to pull the next line of the response
and parse it for the status when a 100 status code is initially encountered, per https://tools.ietf.org/html/rfc7231\#section-6.2.1 -
#122 fixes an issue with the stream response whereby if the
outputstream
option is set, the output file was opened twice; it is now opened exactly once. -
#147 fixes an issue with header retrieval when the header line is malformed.
Previously, an exception would be raised if a specificHeaderInterface
implementation determined
the header line was invalid. Now,Header::has()
will return false for such headers, allowing
Request::getHeader()
to returnfalse
or the provided default value. Additionally, in cases
where the header name is malformed (e.g.,Useragent
instead ofUser-Agent
, users can still
retrieve by the submitted header name; they will receive aGenericHeader
instance in such
cases, however. -
#133 Adds back missing
sprintf placeholder in CacheControl exception message