Add support for proxy setting

This commit is contained in:
matoh
2016-05-27 10:30:26 +09:00
parent 29b0c22b0e
commit baa27d6090

View File

@@ -97,7 +97,7 @@ trait WebHookService {
}
}
try{
val httpClient = HttpClientBuilder.create.addInterceptorLast(itcp).build
val httpClient = HttpClientBuilder.create.useSystemProperties.addInterceptorLast(itcp).build
logger.debug(s"start web hook invocation for ${webHook.url}")
val httpPost = new HttpPost(webHook.url)
logger.info(s"Content-Type: ${webHook.ctype.ctype}")