diff options
author | Ram Krishna Verma <ram_krishna.verma@bell.ca> | 2021-08-26 14:48:27 -0400 |
---|---|---|
committer | Ram Krishna Verma <ram_krishna.verma@bell.ca> | 2021-08-26 14:48:35 -0400 |
commit | 773ec397a32715a3567bc8f8c7e3729319905d23 (patch) | |
tree | 9d36859a6ca334d6a79ddf5cc2a500ffcf7e3316 /plugins/forwarding-plugins | |
parent | f39668976f84c5a5c39a117fdc57a5f3392750ce (diff) |
Fix sonar issue
Issue-ID: POLICY-3077
Change-Id: I53447f551804f4455b65d19d84685ece5cba1c5a
Signed-off-by: Ram Krishna Verma <ram_krishna.verma@bell.ca>
Diffstat (limited to 'plugins/forwarding-plugins')
-rw-r--r-- | plugins/forwarding-plugins/src/main/java/org/onap/policy/distribution/forwarding/lifecycle/api/LifecycleApiPolicyForwarder.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/forwarding-plugins/src/main/java/org/onap/policy/distribution/forwarding/lifecycle/api/LifecycleApiPolicyForwarder.java b/plugins/forwarding-plugins/src/main/java/org/onap/policy/distribution/forwarding/lifecycle/api/LifecycleApiPolicyForwarder.java index 7f9d690d..4d0a8f70 100644 --- a/plugins/forwarding-plugins/src/main/java/org/onap/policy/distribution/forwarding/lifecycle/api/LifecycleApiPolicyForwarder.java +++ b/plugins/forwarding-plugins/src/main/java/org/onap/policy/distribution/forwarding/lifecycle/api/LifecycleApiPolicyForwarder.java @@ -142,7 +142,7 @@ public class LifecycleApiPolicyForwarder implements PolicyForwarder { private Response invokeHttpClient(final Entity<?> entity, final String path, final boolean wantApi) throws PolicyForwardingException { - Response response = getHttpClient(wantApi).post(path, entity, Map.of(HttpHeaders.ACCEPT, + var response = getHttpClient(wantApi).post(path, entity, Map.of(HttpHeaders.ACCEPT, MediaType.APPLICATION_JSON, HttpHeaders.CONTENT_TYPE, MediaType.APPLICATION_JSON)); if (response.getStatus() / 100 != 2) { LOGGER.error( |