Skip to content

Commit

Permalink
header
Browse files Browse the repository at this point in the history
  • Loading branch information
Luke Sikina committed Nov 1, 2023
1 parent ab43e73 commit f4088ad
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package edu.harvard.dbmi.avillach.service;

import edu.harvard.dbmi.avillach.util.HttpClientUtil;
import org.apache.http.Header;
import org.apache.http.HttpResponse;
import org.apache.http.client.HttpClient;
import org.apache.http.client.methods.HttpGet;
Expand Down Expand Up @@ -35,6 +36,7 @@ public Response postProxy(String containerId, String path, String body) {
.build();
HttpPost request = new HttpPost(uri);
request.setEntity(new StringEntity(body));
request.addHeader("Content-Type", "application/json");
return getResponse(request);
} catch (URISyntaxException e) {
LOG.warn("Failed to construct URI. Container: {} Path: {}", containerId, path);
Expand Down

0 comments on commit f4088ad

Please sign in to comment.