Merge remote-tracking branch 'dakrone/log-rest-headers'

This commit is contained in:
Lee Hinman 2015-12-15 08:52:52 -07:00
commit 68bbb6c02c
1 changed files with 1 additions and 0 deletions

View File

@ -168,6 +168,7 @@ public class HttpRequestBuilder {
logger.trace("sending request \n{}", stringBuilder.toString());
}
for (Map.Entry<String, String> entry : this.headers.entrySet()) {
logger.trace("adding header [{} => {}]", entry.getKey(), entry.getValue());
httpUriRequest.addHeader(entry.getKey(), entry.getValue());
}
try (CloseableHttpResponse closeableHttpResponse = httpClient.execute(httpUriRequest)) {