title: "Content-Type" and "Content-Encoding" headers in axios
body: <p>I am using axios@0.21.1 and I want to validate the response headers.
  I am unable validate the headers &quot;Content-Type&quot; and &quot;Content-Encoding&quot; from a GET response.</p>
  <ol>
  <li><strong>&quot;Content-Type&quot;</strong>: No matter what content-type i pass in request, the content-type in response is always application/JSON.
  Example Code Snippet:</li>
  </ol>
  <ul>
  <li></li>
  </ul>
  <pre><code>if (&lt;token is present&gt;) {
     request.headers = {
       authorization : 'Bearer ${token}'
     }
  } else {
    config.auth =  {}
  }
  config.headers = Object.assign(config.header, {
                                  'content-type': application/&lt;custom content&gt;,
                                  'accept-encoding': 'gzip, deflate, br'
                                }
  await axios.get(endPoint, config)
    .then(response =&gt; {
             return response
       }*
  </code></pre>
  <p>When i am checking response.header, i see that content-type is showing as &quot;application/json&quot; instead of the custom type. But when i hit the same url in POSTMAN i could see that content-type is as expected.</p>
  <ol start="2">
  <li><strong>Content-Encoding</strong>: I want to validate the content-encoding in the response, but what i learnt is axios does not return content-encoding header in the response and when i check their github, they are asking to use axios.interceptors. I tried using interceptors but still i am not seeing the header in response. But this header is present in response when i try in POSTMAN. There have been some solution say CORS needs to be enabled in server side. I am strictly asking it from QA point of view because we cannot enable CORS in server side.</li>
  </ol>
  <p>Any help is highly appreciable.</p>