From: sj108s Date: Tue, 8 May 2018 09:53:57 +0000 (+0530) Subject: added code to allow headers in request X-Git-Tag: v1.3.0~8 X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F75%2F46575%2F2;p=appc%2Fcdt.git added code to allow headers in request changed http util service to allow headers in the api request Issue-ID: APPC-885 Change-Id: Ia85148eefdc217011155099b33ac39cc638dd734 Signed-off-by: sj108s --- diff --git a/src/app/shared/services/httpUtil/http-util.service.ts b/src/app/shared/services/httpUtil/http-util.service.ts index 33b3c9e..43e6d4f 100644 --- a/src/app/shared/services/httpUtil/http-util.service.ts +++ b/src/app/shared/services/httpUtil/http-util.service.ts @@ -32,7 +32,7 @@ export class HttpUtilService { private password = require('../../../cdt.application.properties.json').password; constructor(private http: Http) { this.headers = new Headers({ 'Content-Type': 'application/json' }); // ... Set content type to JSON - // this.options = new RequestOptions({headers: this.headers}); // + this.options = new RequestOptions({headers: this.headers}); // } get(req) {