1
0
mirror of https://github.com/guzzle/guzzle.git synced 2025-02-23 01:23:39 +01:00
Orian de Wit 33bee79d0c Update Client.php to handle null headers (#2259)
* Update Client.php

A post with options `['json' => $data, 'headers' => null]` gives a `Undefined index: _conditional` in the `Psr7\_caseless_remove()` call on line 326.

When the headers key exists but is null, it seems more logical to set `$defaults['_conditional']` to an empty array than null.

* added test
2019-10-23 18:13:55 +02:00
..