You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Eric Schwarzenbach (JIRA)" <ji...@apache.org> on 2019/04/11 21:12:00 UTC
[jira] [Created] (CXF-8018) setAllowChunking and
org.apache.cxf.jaxrs.client.WebClient
Eric Schwarzenbach created CXF-8018:
---------------------------------------
Summary: 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
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)