From 025de02c2fe6daf56c498af6049d07c473628278 Mon Sep 17 00:00:00 2001 From: "argiro.kokogiannaki" Date: Wed, 19 Jun 2019 09:11:05 +0000 Subject: [PATCH] [Trunk|Library] htmlProjectReport.service.ts: set the return type as text (Angular 7 change) git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-services-library/trunk/ng-openaire-library/src/app@56114 d315682c-612b-4755-9ff5-7f18f6832af3 --- .../htmlProjectReport/htmlProjectReport.service.ts | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/landingPages/htmlProjectReport/htmlProjectReport.service.ts b/landingPages/htmlProjectReport/htmlProjectReport.service.ts index a50e6f1f..799ec687 100644 --- a/landingPages/htmlProjectReport/htmlProjectReport.service.ts +++ b/landingPages/htmlProjectReport/htmlProjectReport.service.ts @@ -1,9 +1,5 @@ import {Injectable} from '@angular/core'; -import {Http, Response} from '@angular/http'; import {HttpClient} from "@angular/common/http"; -import {Observable} from 'rxjs'; - -import {map} from "rxjs/operators"; @Injectable() export class HtmlProjectReportService { @@ -33,10 +29,6 @@ export class HtmlProjectReportService { let key = url; - return this.http.get(url) - .pipe(map(res => { - let resText:any = res; - return resText.text(); - })); + return this.http.get(url,{responseType: 'text'}); } }