mirror of
https://github.com/tenrok/axios.git
synced 2026-06-17 19:21:29 +03:00
Remember socketPath in mergeConfig
This commit is contained in:
@@ -37,7 +37,8 @@ module.exports = function mergeConfig(config1, config2) {
|
|||||||
'baseURL', 'transformRequest', 'transformResponse', 'paramsSerializer',
|
'baseURL', 'transformRequest', 'transformResponse', 'paramsSerializer',
|
||||||
'timeout', 'withCredentials', 'adapter', 'responseType', 'xsrfCookieName',
|
'timeout', 'withCredentials', 'adapter', 'responseType', 'xsrfCookieName',
|
||||||
'xsrfHeaderName', 'onUploadProgress', 'onDownloadProgress', 'maxContentLength',
|
'xsrfHeaderName', 'onUploadProgress', 'onDownloadProgress', 'maxContentLength',
|
||||||
'validateStatus', 'maxRedirects', 'httpAgent', 'httpsAgent', 'cancelToken'
|
'validateStatus', 'maxRedirects', 'httpAgent', 'httpsAgent', 'cancelToken',
|
||||||
|
'socketPath'
|
||||||
], function defaultToConfig2(prop) {
|
], function defaultToConfig2(prop) {
|
||||||
if (typeof config2[prop] !== 'undefined') {
|
if (typeof config2[prop] !== 'undefined') {
|
||||||
config[prop] = config2[prop];
|
config[prop] = config2[prop];
|
||||||
|
|||||||
Reference in New Issue
Block a user