X-Git-Url: https://gerrit.onap.org/r/gitweb?p=holmes%2Frule-management.git;a=blobdiff_plain;f=rulemgt-frontend%2Fsrc%2Fapp%2Fcorrelation-ruleList%2FalarmRule.service.ts;h=90964b1095fd9a23487229703146a1ac637b282e;hp=ebab2899459d99581623875f5482dbf168b064d2;hb=6ebc6d22c0654cbdfde1329d5ea7a2f23df5988d;hpb=1915e1c1948fd4252ad6caab9468ea88d24b869e diff --git a/rulemgt-frontend/src/app/correlation-ruleList/alarmRule.service.ts b/rulemgt-frontend/src/app/correlation-ruleList/alarmRule.service.ts index ebab289..90964b1 100644 --- a/rulemgt-frontend/src/app/correlation-ruleList/alarmRule.service.ts +++ b/rulemgt-frontend/src/app/correlation-ruleList/alarmRule.service.ts @@ -57,7 +57,7 @@ export class AlarmRuleService { let data = {'ruleId': ruleId}; var queryrequest = JSON.stringify(data); const url = `${this.ruleUrl}?queryrequest=${queryrequest}`; - return this.http.get(url, {headers: this.headers}) + return this.http.get(encodeURI(url)) .toPromise() .then(res => res.json().correlationRules as RuleModel[]) .catch(this.handleError); @@ -67,7 +67,7 @@ export class AlarmRuleService { let data = {ruleName: rule.ruleName, enabled: rule.enabled} console.log(JSON.stringify(data)); const url = `${this.ruleUrl}?queryrequest=${JSON.stringify(data)}` - return this.http.get(url, {body: data, headers: this.headers}) + return this.http.get(encodeURI(url)) .toPromise() .then(res => res.json().correlationRules as RuleModel[]) .catch(this.handleError);