Merge remote-tracking branch 'dspace/master' into 201-pipeable-operators

Conflicts:
	src/app/core/data/request.effects.ts
This commit is contained in:
Kristof De Langhe
2018-07-09 14:18:20 +02:00
123 changed files with 5655 additions and 278 deletions

View File

@@ -41,9 +41,9 @@ export class RequestEffects {
let body;
if (isNotEmpty(request.body)) {
const serializer = new DSpaceRESTv2Serializer(NormalizedObjectFactory.getConstructor(request.body.type));
body = JSON.stringify(serializer.serialize(request.body));
body = serializer.serialize(request.body);
}
return this.restApi.request(request.method, request.href, body).pipe(
return this.restApi.request(request.method, request.href, body, request.options).pipe(
map((data: DSpaceRESTV2Response) => this.injector.get(request.getResponseParser()).parse(request, data)),
addToResponseCacheAndCompleteAction(request, this.responseCache, this.EnvConfig),
catchError((error: RequestError) => Observable.of(new ErrorResponse(error)).pipe(