[
https://issues.apache.org/jira/browse/CXF-8931?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17876282#comment-17876282
]
John Tal commented on CXF-8931:
-------------------------------
[~reta] - Hi, I looked in reta CXF-8931, in HttpClientHTTPConduit does the
method public long contentLength() need a .reset method on the stream? Also,
whether or not the stream supports reset is in
https://docs.oracle.com/javase/8/docs/api/java/io/InputStream.html#markSupported–,
but, it seems you are getting the length on CloseableByteArrayOutputStream, so
you are likely using a smarter method. If you TCs support/show HTTP headers as
chunked, an then when setting chunked(false) not having chunked, then from what
I can see, you are probably good here. Other eyes may be needed. thanks!
> HttpClientHTTPConduit can't disable the http chunk mode
> -------------------------------------------------------
>
> Key: CXF-8931
> URL: https://issues.apache.org/jira/browse/CXF-8931
> Project: CXF
> Issue Type: Bug
> Reporter: Jim Ma
> Assignee: Andriy Redko
> Priority: Major
> Fix For: 4.1.0, 3.6.5, 4.0.6
>
>
> This works with URLConnectionHttpConduit, but this doesn't work with the new
> HttpClientHTTPConduit. When set the HttpClientPolicy.setAllowChunking(false)
>
--
This message was sent by Atlassian Jira
(v8.20.10#820010)