title: octet-stream on angular - file download not working
body: <p>I am trying to download a file on a button click, api have been hit successfully am getting 200 response, but file is not being downloaded. It's working on postman. </p>
  
  <p>My code is shown below</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>/****  click */
  
    downloadAsset() {
      this.detailsService.getCsvReport(this.jobId).subscribe(data =&gt; {});
    }
  
  
  /**** Service */
  
  getCsvReport(jobId): Observable&lt;Object&gt; {
      const header = { Accept: "application/octet-stream" };
      let endpoint: string = `${Endpoints.REPORT}jobs/${jobId}/filePath?`;
      return this.get(endpoint, header).pipe(
        map(report =&gt; {
          return report.data.parentXml;
        })
      );
    }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>      &lt;button
              class="btn btn-blue-border"
              style="float: right;"
              (click)="downloadAsset()"
            &gt;
              Download Report
            &lt;/button&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>Any changes or suggestion's would be appreciated.</p>