title: Response body from post request in angular is empty
body: <p>i am doing a post request using Http in angular 7,</p>
  <p>code:</p>
  <pre><code>signInUser(reqData) {
  const headerInfo = new Headers({
                                              'Content-Type': 'application/x-www-form-urlencoded',
                                              'X-TIME-ZONE': '+5.30',
                                              'X-DEVICE-ID': '911422351920594',
                                              'X-APP-VERSION': '45',
                                              'X-APP-CHANNEL-NAME': 'ANDROID',
                                              'X-DEVICE-OS-VERSION': '45',
                                              'X-DEVICE-MODEL': 'ANDROID'
                                              });
      const request = this.http.post('server-ip', reqData, {headers: headerInfo});
  
      request.subscribe(
        (response) =&gt; {
          console.log(response);
        }
      );
  }
  </code></pre>
  <p>i am having backend in spring mvc, and the request is working fine and the server has generated the required response. <strong>In the server log i can see the response json data.</strong></p>
  <p>but when it comes to angular, the response body is empty.</p>
  <p><a href="https://i.stack.imgur.com/LDfLM.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/LDfLM.png" alt="angular response body" /></a></p>
  <p>why is this happening?</p>