Closed joolfe closed 4 years ago
You are right, currently the entire https object is merged, not the single options inside it.
@szmarczak I really haven't thought about it, if you think that it should merge every single options I can fix it.
We should do deep merge. That’s the expected behavior.
Describe the bug
Actual behavior
The new config fields for
options.https
are not merged correctly when extend a got instance.Expected behavior
If you have an instance of got that has some config of
options.https
and provide a new one then the resulted instance should has a merged verison.Code to reproduce
Checklist