Skip to content

Commit

Permalink
🐛 #47 fixed environment issue
Browse files Browse the repository at this point in the history
  • Loading branch information
ishaileshmishra committed Feb 23, 2022
1 parent c425339 commit d752f50
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/main/java/com/contentstack/sdk/CSHttpConnection.java
Original file line number Diff line number Diff line change
Expand Up @@ -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<ResponseBody> response = service.getRequest(requestUrl, this.headers).execute();
Expand Down

0 comments on commit d752f50

Please sign in to comment.