[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
This commit is contained in:
argiro.kokogiannaki 2019-06-19 09:11:05 +00:00
parent b1d2d474f3
commit 025de02c2f
1 changed files with 1 additions and 9 deletions

View File

@ -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'});
}
}