http.post is not sending request
reachlakstar opened this issue · 3 comments
reachlakstar commented
Http.post initiated but no response, not sure what is happening. but it works fine with fetch command.
marclaval commented
I don't think I've ever tried to use POST in this project.
Can you please post your code snippet of using http.post?
reachlakstar commented
let body = JSON.stringify({ name });
let headers = new Headers({ 'Content-Type': 'application/json' });
let options = new RequestOptions({ headers: headers });
return this.http.post(this.heroesUrl, body, options)
.map(this.extractData)
.catch(this.handleError);
marclaval commented
This is an actual bug which needs to be fixed