Commit d3de0b38bc579edb472a624864f20f2eebd27423
1 parent
893445ac
Request Ok
Showing
1 changed file
with
2 additions
and
2 deletions
Show diff stats
src/app/pages/statements/components/busStop2/busStop2.service.ts
@@ -33,13 +33,13 @@ export class BusStop2Service { | @@ -33,13 +33,13 @@ export class BusStop2Service { | ||
33 | .catch(this.handleError); | 33 | .catch(this.handleError); |
34 | } | 34 | } |
35 | update(id: number, data: string): Promise<any> { | 35 | update(id: number, data: string): Promise<any> { |
36 | - return this.http.post(this.url + '/update?id=' + id + '&data=' + data, {}, this.headers) | 36 | + return this.http.post(this.url + '/update?id=' + id + '&data=' + data, {}, { headers: this.headers }) |
37 | .toPromise() | 37 | .toPromise() |
38 | .then(response => response.json()) | 38 | .then(response => response.json()) |
39 | .catch(this.handleError); | 39 | .catch(this.handleError); |
40 | } | 40 | } |
41 | create(data: string): Promise<any> { | 41 | create(data: string): Promise<any> { |
42 | - return this.http.post(this.url + '/create?data=' + data, {}) | 42 | + return this.http.post(this.url + '/create?data=' + data, {}, { headers: this.headers }) |
43 | .toPromise() | 43 | .toPromise() |
44 | .then(response => response.json()) | 44 | .then(response => response.json()) |
45 | .catch(this.handleError); | 45 | .catch(this.handleError); |