[ 
https://issues.apache.org/jira/browse/CXF-8018?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16820934#comment-16820934
 ] 

Colm O hEigeartaigh commented on CXF-8018:
------------------------------------------

clientPolicy.isSetAllowChunking() just returns whether the default value was 
changed or not. Instead, clientPolicy.isAllowChunking() should return false for 
your use-case.

> setAllowChunking and org.apache.cxf.jaxrs.client.WebClient
> ----------------------------------------------------------
>
>                 Key: CXF-8018
>                 URL: https://issues.apache.org/jira/browse/CXF-8018
>             Project: CXF
>          Issue Type: Bug
>    Affects Versions: 3.3.1
>            Reporter: Eric Schwarzenbach
>            Priority: Major
>
> Given a org.apache.cxf.jaxrs.client.WebClient object, created like
> WebClient client = WebClient.create(extSysUrl);
> executing
> HTTPClientPolicy clientPolicy = 
> WebClient.getConfig(client).getHttpConduit().getClient()
> clientPolicy.setAllowChunking(false);
> does not seem to work. Immediately after this calling
> clientPolicy.isSetAllowChunking() returns true.
> Calling
> clientPolicy.unsetAllowChunking();
> seems to have somewhat more effect as after this 
> clientPolicy.isSetAllowChunking() returns false.
> However the Response received after calling client.invoke() has a header of 
> "transfer-encoding" set to "chunked" leading me to doubt that chunking is 
> actually disabled. 



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to