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:
commit
0118099daf
@ -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]);
|
||||
|
Loading…
x
Reference in New Issue
Block a user