parent
6bf6741bcb
commit
a19c2ce726
@ -53,7 +53,7 @@ export class HeroService {
|
|||||||
let url = `${this.heroesUrl}/${hero.id}`;
|
let url = `${this.heroesUrl}/${hero.id}`;
|
||||||
|
|
||||||
return this.http
|
return this.http
|
||||||
.delete(url, headers)
|
.delete(url, {headers: headers})
|
||||||
.toPromise()
|
.toPromise()
|
||||||
.catch(this.handleError);
|
.catch(this.handleError);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user