<p dir="auto">Axios Version : 0.19.x<br>
Custom config passed by axios.create lost in the interceptor</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="const client = axios.create({custom1: 'xxx'})
client.interceptors.response.use(res =&gt; {
  config.custom1 // undefined
  config.custom2 // xxx
  return res.data
})
client.get('/xxx', {custom2: 'xxx'})"><pre class="notranslate"><span class="pl-k">const</span> <span class="pl-s1">client</span> <span class="pl-c1">=</span> <span class="pl-s1">axios</span><span class="pl-kos">.</span><span class="pl-en">create</span><span class="pl-kos">(</span><span class="pl-kos">{</span><span class="pl-c1">custom1</span>: <span class="pl-s">'xxx'</span><span class="pl-kos">}</span><span class="pl-kos">)</span>
<span class="pl-s1">client</span><span class="pl-kos">.</span><span class="pl-c1">interceptors</span><span class="pl-kos">.</span><span class="pl-c1">response</span><span class="pl-kos">.</span><span class="pl-en">use</span><span class="pl-kos">(</span><span class="pl-s1">res</span> <span class="pl-c1">=&gt;</span> <span class="pl-kos">{</span>
  <span class="pl-s1">config</span><span class="pl-kos">.</span><span class="pl-c1">custom1</span> <span class="pl-c">// undefined</span>
  <span class="pl-s1">config</span><span class="pl-kos">.</span><span class="pl-c1">custom2</span> <span class="pl-c">// xxx</span>
  <span class="pl-k">return</span> <span class="pl-s1">res</span><span class="pl-kos">.</span><span class="pl-c1">data</span>
<span class="pl-kos">}</span><span class="pl-kos">)</span>
<span class="pl-s1">client</span><span class="pl-kos">.</span><span class="pl-en">get</span><span class="pl-kos">(</span><span class="pl-s">'/xxx'</span><span class="pl-kos">,</span> <span class="pl-kos">{</span><span class="pl-c1">custom2</span>: <span class="pl-s">'xxx'</span><span class="pl-kos">}</span><span class="pl-kos">)</span></pre></div>
<p dir="auto"><strong>Describe the bug</strong><br>
Custom settings are not persisted to each request</p>
<p dir="auto"><strong>To Reproduce</strong></p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="
var axios = require('axios')
var axios2 = axios.create({retry: true});
// should log &quot;Retry is true&quot;
axios2.interceptors.request.use(request =&gt; console.log('Retry is ' + request.retry));
axios2.get('http://www.blankwebsite.com/');
"><pre class="notranslate"><span class="pl-k">var</span> <span class="pl-s1">axios</span> <span class="pl-c1">=</span> <span class="pl-en">require</span><span class="pl-kos">(</span><span class="pl-s">'axios'</span><span class="pl-kos">)</span>
<span class="pl-k">var</span> <span class="pl-s1">axios2</span> <span class="pl-c1">=</span> <span class="pl-s1">axios</span><span class="pl-kos">.</span><span class="pl-en">create</span><span class="pl-kos">(</span><span class="pl-kos">{</span><span class="pl-c1">retry</span>: <span class="pl-c1">true</span><span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-c">// should log "Retry is true"</span>
<span class="pl-s1">axios2</span><span class="pl-kos">.</span><span class="pl-c1">interceptors</span><span class="pl-kos">.</span><span class="pl-c1">request</span><span class="pl-kos">.</span><span class="pl-en">use</span><span class="pl-kos">(</span><span class="pl-s1">request</span> <span class="pl-c1">=&gt;</span> <span class="pl-smi">console</span><span class="pl-kos">.</span><span class="pl-en">log</span><span class="pl-kos">(</span><span class="pl-s">'Retry is '</span> <span class="pl-c1">+</span> <span class="pl-s1">request</span><span class="pl-kos">.</span><span class="pl-c1">retry</span><span class="pl-kos">)</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-s1">axios2</span><span class="pl-kos">.</span><span class="pl-en">get</span><span class="pl-kos">(</span><span class="pl-s">'http://www.blankwebsite.com/'</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div>
<p dir="auto"><strong>Expected behavior</strong><br>
Custom default parameters should be persisted to each request.</p>
<p dir="auto"><strong>Environment:</strong></p>
<ul dir="auto">
<li>Axios Version [hash <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/axios/axios/commit/a17c70cb5ae4acd7aa307b7f7dc869953dea22c4/hovercard" href="https://github.com/axios/axios/commit/a17c70cb5ae4acd7aa307b7f7dc869953dea22c4"><tt>a17c70c</tt></a>]</li>
</ul>