In my angular 2 application , I am making a HTTP POST request to a service(HTTPS) , the HTTP response returned by service has a custom RESPONSE header "X-COUNT", but in below code the console.log does not print info about custom header "X-COUNT" , but it does print info about other headers.
this._http.post(restUri, postdata, options)
.map(itemsResult =>
{
console.log(JSON.stringify(itemsResult.headers));
return items;
}).catch((err) => {
return Observable.of([]);
});
Any idea why I am not able to get custom header info.