Skip to content

Commit

Permalink
Update adal5-http.service.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
demonking99 authored Dec 26, 2017
1 parent 7ac25b0 commit 73e25ac
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/adal5-http.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -201,14 +201,14 @@ export class Adal5HTTPService {
.set('Authorization', `Bearer ${token}`);
options.headers = headers;
}
return this.http.request(method, url, options)
return this.http.request(url, options)
.catch(this.handleError);
});
} else {
authenticatedCall = Observable.throw(new Error('User Not Authenticated.'));
}
} else {
authenticatedCall = this.http.request(method, url, options).catch(this.handleError);
authenticatedCall = this.http.request(url, options).catch(this.handleError);
}

return authenticatedCall;
Expand Down

0 comments on commit 73e25ac

Please sign in to comment.