1
0
mirror of https://github.com/guzzle/guzzle.git synced 2025-01-18 05:48:15 +01:00

Merge pull request #1635 from j92/fix-typo-in-request-options-headers

Added missing square bracket
This commit is contained in:
Márk Sági-Kazár 2016-10-28 02:09:06 +02:00 committed by GitHub
commit 0118099daf

View File

@ -462,7 +462,7 @@ created by the client (e.g., ``request()`` and ``requestAsync()``).
// Sets the X-Foo header to "test", which prevents the default header
// from being applied.
$client->request('GET', '/get', ['headers' => ['X-Foo' => 'test']);
$client->request('GET', '/get', ['headers' => ['X-Foo' => 'test']]);
// Will disable adding in default headers.
$client->request('GET', '/get', ['headers' => null]);