title: Angular 8 HttpClient: Unable to process text/csv server response
body: <p>I have a endpoint which returns a csv data set which will be saved using <code>saveas</code> and <code>Blob</code>
  AngularJS frontend works fine while Angular 8 struggles.
  Here is my Angular 8 implementation</p>
  
  <pre><code> const headers = new HttpHeaders({
              Accept: 'text/csv',
          });
          const options = { headers };
          this.httpClient
              .post&lt;ExportCsvSettingsViewDto&gt;(this.appConfigService.buildApiUrl(this.loadPath(batchId)), csvDto, options)
              .subscribe((fileResult: any) =&gt; {
                  const file = new Blob([fileResult], { type: 'text/csv' });
                  saveAs(file, this.fileName + '.csv');
              });
  </code></pre>
  
  <p>This results in a <code>HttpErrorResponse</code> stating:
  <em>Object {error: SyntaxError: Unexpected token . in JSON at positio…, text: "1.112.373;en-US
  Date Time UTC;Date Local Time;Bat…"}</em></p>
  
  <p>I suspect this is because <code>HttpClient</code> treats the response as <code>JSON</code> instead of <code>"text/csv"</code>
  Those were the request headers:</p>
  
  <pre><code>Connection: keep-alive
  Content-Length: 141
  Pragma: no-cache
  Cache-Control: no-cache
  Accept: text/csv
  Content-Type: application/json
  Accept-Encoding: gzip, deflate
  Accept-Language: en-US,en;q=0.9
  </code></pre>
  
  <p>and response headers:</p>
  
  <pre><code>HTTP/1.1 200 OK
  Cache-Control: no-cache, no-store, must-revalidate
  Pragma: no-cache
  Content-Type: text/csv
  Expires: 0
  Server: Microsoft-IIS/10.0
  X-Powered-By: ASP.NET
  X-UA-Compatible: IE=edge
  Content-Length: 191147
  </code></pre>
  
  <p>I tried to explicitly set <code>"responseType"</code> in request header to <code>"text/csv"</code> but that's just not possible.
  Any ideas on that?</p>