This commit is contained in:
Lucio Lelii 2018-07-05 14:18:11 +00:00
parent 1d55174ffd
commit 824a7c185b
1 changed files with 2 additions and 1 deletions

View File

@ -31,7 +31,8 @@ public class TargetFactory implements TargetFactoryDSL.AtClause{
Client client = ClientBuilder.newClient()
.property(ClientProperties.FOLLOW_REDIRECTS, Boolean.FALSE)
.property(ClientProperties.CHUNKED_ENCODING_SIZE, 1024);
.property(ClientProperties.CHUNKED_ENCODING_SIZE, 1024).property(ClientProperties.OUTBOUND_CONTENT_LENGTH_BUFFER, -1)
.property(ClientProperties.REQUEST_ENTITY_PROCESSING, "CHUNKED");
/*
String resourceAddress = address.substring(0, address.indexOf("/service"));