From d752f50256b015c615315c26797130419f17fd96 Mon Sep 17 00:00:00 2001 From: Shailesh Mishra Date: Wed, 23 Feb 2022 10:12:48 +0530 Subject: [PATCH] :bug: #47 fixed environment issue --- src/main/java/com/contentstack/sdk/CSHttpConnection.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/com/contentstack/sdk/CSHttpConnection.java b/src/main/java/com/contentstack/sdk/CSHttpConnection.java index 8380995c..434acad3 100644 --- a/src/main/java/com/contentstack/sdk/CSHttpConnection.java +++ b/src/main/java/com/contentstack/sdk/CSHttpConnection.java @@ -184,6 +184,7 @@ public void send() { private void getService(String requestUrl) throws IOException { Retrofit retrofit = new Retrofit.Builder().baseUrl(this.endpoint).build(); APIService service = retrofit.create(APIService.class); + // [Removed environment deletion] this.headers.put(X_USER_AGENT, CLIENT_USER_AGENT); this.headers.put(CONTENT_TYPE, APPLICATION_JSON); Response response = service.getRequest(requestUrl, this.headers).execute();