diff options
author | Marek Szwałkiewicz <marek.szwalkiewicz@external.t-mobile.pl> | 2023-03-02 12:43:50 +0100 |
---|---|---|
committer | Marek Szwałkiewicz <marek.szwalkiewicz@external.t-mobile.pl> | 2023-03-03 12:42:35 +0100 |
commit | 508489a4ea7000b9e24cdb0ea48f5357010d783e (patch) | |
tree | d0ae300483b4fb943194ce8f0535a19eb9c1b8f5 /sdc-distribution-client/src/main/java/org/onap/sdc/http/IHttpSdcClient.java | |
parent | 928348966d924f7cf41077f98ab6665ea6aec512 (diff) |
Enable case insensitive matching of http headers
This change creates simple case insensitive map implementation that
is used in HttpSdcResponse class to store the response headers.
Generally HTTP headers are supposed to be case insensitive and
sometimes get transformed (in our case - by istio sidecar) to lower case.
With this change lower case will still be matched and the original
behaviour will not break.
Issue-ID: SDC-4233
Signed-off-by: Marek Szwałkiewicz <marek.szwalkiewicz@external.t-mobile.pl>
Change-Id: I1cb9d9e75ff656ccb12c690c553bccc672332a12
Diffstat (limited to 'sdc-distribution-client/src/main/java/org/onap/sdc/http/IHttpSdcClient.java')
-rw-r--r-- | sdc-distribution-client/src/main/java/org/onap/sdc/http/IHttpSdcClient.java | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/sdc-distribution-client/src/main/java/org/onap/sdc/http/IHttpSdcClient.java b/sdc-distribution-client/src/main/java/org/onap/sdc/http/IHttpSdcClient.java index 9adce23..3ea4795 100644 --- a/sdc-distribution-client/src/main/java/org/onap/sdc/http/IHttpSdcClient.java +++ b/sdc-distribution-client/src/main/java/org/onap/sdc/http/IHttpSdcClient.java @@ -20,15 +20,14 @@ package org.onap.sdc.http; -import java.util.Map; - +import org.onap.sdc.utils.CaseInsensitiveMap; import org.apache.http.HttpEntity; public interface IHttpSdcClient { - HttpSdcResponse postRequest(String requestUrl, HttpEntity entity, Map<String, String> headersMap); + HttpSdcResponse postRequest(String requestUrl, HttpEntity entity, CaseInsensitiveMap<String, String> headersMap); - HttpSdcResponse getRequest(String requestUrl, Map<String, String> headersMap); + HttpSdcResponse getRequest(String requestUrl, CaseInsensitiveMap<String, String> headersMap); void closeHttpClient(); |