angular/react-native-renderer

http.post is not sending request

reachlakstar opened this issue · 3 comments

Http.post initiated but no response, not sure what is happening. but it works fine with fetch command.

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?

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);

This is an actual bug which needs to be fixed