Skip to content
This repository was archived by the owner on Jan 30, 2020. It is now read-only.

zend-http 2.8.0

Compare
Choose a tag to compare
@weierophinney weierophinney released this 26 Apr 21:06
· 301 commits to master since this release

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 the Headers 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 specific HeaderInterface implementation determined
    the header line was invalid. Now, Header::has() will return false for such headers, allowing
    Request::getHeader() to return false or the provided default value. Additionally, in cases
    where the header name is malformed (e.g., Useragent instead of User-Agent, users can still
    retrieve by the submitted header name; they will receive a GenericHeader instance in such
    cases, however.

  • #133 Adds back missing
    sprintf placeholder in CacheControl exception message