Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Allow unsetting headers by passing null (#382) #1845
First of all, deepMerge was always returning an object even if the latter value being merged was not an object. This was making it impossible to later detect that initially a
Changing deepMerge propagated the behaviour to mergeConfig. No changes needed in mergeConfig.
Then, eventually in dispatchRequest I had to remove the null-valued headers. I imagine there would be need to do the same for also auth and proxy objects, as maybe similar behaviour (ability to unset a property by passing null) would be preferred?