Skip to content

Commit

Permalink
fix(http): rxjs changes which caused concurrency request failure (#228)
Browse files Browse the repository at this point in the history
  • Loading branch information
emoralesb05 authored and kyleledbetter committed Jan 2, 2017
1 parent 1cd3e49 commit 31a60cd
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions src/platform/http/interceptors/http-interceptor.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -99,14 +99,12 @@ export class HttpInterceptorService {
}
return new Observable<any>((subscriber: Subscriber<any>) => {
this._http.request(url, requestOptions)
.do((response: Response) => {
.subscribe((response: Response) => {
subscriber.next(this._responseResolve(response, interceptors));
subscriber.complete();
}).catch((error: Response) => {
return new Observable<any>(() => {
subscriber.error(this._responseErrorResolve(error, interceptors));
});
}).subscribe();
}, (error: Response) => {
subscriber.error(this._responseErrorResolve(error, interceptors));
});
});
}

Expand Down

0 comments on commit 31a60cd

Please sign in to comment.