Skip to content

Releases: sabre-io/http

3.0.4

20 May 10:16
Compare
Choose a tag to compare
  • #38: The Authentication helpers no longer overwrite any existing
    WWW-Authenticate headers, but instead append new headers. This ensures
    that multiple authentication systems can exist in the same environment.

3.0.3

20 May 10:16
Compare
Choose a tag to compare
  • Hiding Authorization header value from Request::__toString.

3.0.2

20 May 10:17
Compare
Choose a tag to compare
  • When parsing Accept: headers, we're ignoring invalid parts. Before we
    would throw a PHP E_NOTICE.

3.0.1

20 May 10:17
Compare
Choose a tag to compare
  • Minor change in unittests.

3.0.0

23 Sep 23:47
Compare
Choose a tag to compare
  • getHeaders() now returns header values as an array, just like psr/http.
  • Added hasHeader().

2.1.0-alpha1

23 Sep 23:47
Compare
Choose a tag to compare
2.1.0-alpha1 Pre-release
Pre-release
  • Changed: Copied most of the header-semantics for the PSR draft for
    representing HTTP messages. Reference here.
  • This means that setHeaders() does not wipe out every existing header
    anymore.
  • We also support multiple headers with the same name.
  • Use Request::getHeaderAsArray() and Response::getHeaderAsArray() to
    get a hold off multiple headers with the same name.
  • If you use getHeader(), and there's more than 1 header with that name, we
    concatenate all these with a comma.
  • addHeader() will now preserve an existing header with that name, and add a
    second header with the same name.
  • The message class should be a lot faster now for looking up headers. No more
    array traversal, because we maintain a tiny index.
  • Added: URLUtil::resolve() to make resolving relative urls super easy.
  • Switched to PSR-4.
  • #12: Circumventing CURL's FOLLOW_LOCATION and doing it in PHP instead. This
    fixes compatibility issues with people that have open_basedir turned on.
  • Added: Content negotiation now correctly support mime-type parameters such as
    charset.
  • Changed: Util::negotiate() is now deprecated. Use
    Util::negotiateContentType() instead.
  • #14: The client now only follows http and https urls.

2.0.4

23 Sep 23:48
Compare
Choose a tag to compare
  • Changed: No longer escaping @ in urls when it's not needed.
  • Fixed: #7: Client now correctly deals with responses without a body.

2.0.3

20 May 10:18
Compare
Choose a tag to compare
  • Now works on hhvm!
  • Fixed: Now throwing an error when a Request object is being created with
    arguments that were valid for sabre/http 1.0. Hopefully this will aid with
    debugging for upgraders.

2.0.2

20 May 10:18
Compare
Choose a tag to compare
  • Fixed: Potential security problem in the client.

2.0.1

20 May 10:18
Compare
Choose a tag to compare
  • Fixed: getBodyAsString on an empty body now works.
  • Fixed: Version string