From 22dc7aaf2529a1893dfedef65f4a780e5e491633 Mon Sep 17 00:00:00 2001 From: Pahansith Gunathilake Date: Fri, 21 May 2021 13:22:25 +0000 Subject: [PATCH] Revert "Merge branch 'invoker' into 'master'" This reverts merge request !769 --- .../io/entgra/ui/request/interceptor/InvokerHandler.java | 6 ------ 1 file changed, 6 deletions(-) diff --git a/components/ui-request-interceptor/io.entgra.ui.request.interceptor/src/main/java/io/entgra/ui/request/interceptor/InvokerHandler.java b/components/ui-request-interceptor/io.entgra.ui.request.interceptor/src/main/java/io/entgra/ui/request/interceptor/InvokerHandler.java index d56202d8e2..51a6c06674 100644 --- a/components/ui-request-interceptor/io.entgra.ui.request.interceptor/src/main/java/io/entgra/ui/request/interceptor/InvokerHandler.java +++ b/components/ui-request-interceptor/io.entgra.ui.request.interceptor/src/main/java/io/entgra/ui/request/interceptor/InvokerHandler.java @@ -48,7 +48,6 @@ import org.apache.http.entity.mime.HttpMultipartMode; import org.apache.http.entity.mime.MultipartEntityBuilder; import org.apache.http.entity.mime.content.InputStreamBody; import io.entgra.ui.request.interceptor.beans.ProxyResponse; -import org.wso2.carbon.context.CarbonContext; import javax.servlet.annotation.MultipartConfig; import javax.servlet.annotation.WebServlet; @@ -111,11 +110,6 @@ public class InvokerHandler extends HttpServlet { HttpGet getRequest = new HttpGet(generateBackendRequestURL(req)); copyRequestHeaders(req, getRequest, false); getRequest.setHeader(HttpHeaders.AUTHORIZATION, HandlerConstants.BEARER + authData.getAccessToken()); - if (apiEndpoint.equals(System.getProperty("iot.reporting.webapp.host"))) { - getRequest.setHeader("Tenant-Id", String.valueOf( - CarbonContext.getThreadLocalCarbonContext().getTenantId() - )); - } ProxyResponse proxyResponse = HandlerUtil.execute(getRequest); if (HandlerConstants.TOKEN_IS_EXPIRED.equals(proxyResponse.getExecutorResponse())) { proxyResponse = retryRequestWithRefreshedToken(req, resp, getRequest);