Can't get content-disposition from http.get header?
<p>I am trying to download a file using web API + Angularjs and it's working fine, however I'm sending 'content-disposition' in the header from the web API but I'm unable to access it in the response-header.</p>

<p>WebAPI:</p>

<pre><code>[HttpGet]
[AllowCrossSiteJson]
public HttpResponseMessage GetAcquisitionsTemplate()
{
    var docContent = _d.FirstOrDefault();
    Stream stream = new MemoryStream(docContent.Content);
    HttpResponseMessage result = new HttpResponseMessage(HttpStatusCode.OK);
    string contentDisposition = string.Concat("attachment; filename=", docContent.Name.Replace(" ", String.Empty), "." + docContent.Extension);
    result.Content = new StreamContent(stream);
    result.Content.Headers.ContentType = new MediaTypeHeaderValue("application/octet-stream");    
    result.Content.Headers.ContentDisposition = ContentDispositionHeaderValue.Parse(contentDisposition);
    return result;            
}
</code></pre>

<p>Client Side (AngularJs):</p>

<pre><code>$http.get(url)success(function (data, status, headers) {
    var header= headers();
})
</code></pre>

<p>In the header I'm getting the following values but I'm unable to get content-disposition. Please correct me where I'm wrong? </p>

<p><a href="https://i.stack.imgur.com/HG75b.png" rel="noreferrer"><img src="https://i.stack.imgur.com/HG75b.png" alt="enter image description here"></a></p>