mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-17 15:03:07 +00:00
Reverted inappropriate changes
This commit is contained in:
@@ -67,10 +67,7 @@ export class DSpaceRESTv2Service {
|
|||||||
requestOptions.responseType = options.responseType;
|
requestOptions.responseType = options.responseType;
|
||||||
}
|
}
|
||||||
return this.http.request(method, url, requestOptions)
|
return this.http.request(method, url, requestOptions)
|
||||||
.map((res) => {
|
.map((res) => ({ payload: res.body, headers: res.headers, statusCode: res.statusText }))
|
||||||
console.log(res);
|
|
||||||
return ({ payload: res.body, headers: res.headers, statusCode: res.statusText })
|
|
||||||
})
|
|
||||||
.catch((err) => {
|
.catch((err) => {
|
||||||
console.log('Error: ', err);
|
console.log('Error: ', err);
|
||||||
return Observable.throw(err);
|
return Observable.throw(err);
|
||||||
|
Reference in New Issue
Block a user