Project: mule
Issue MULE-8206: Inconsistent implementation of streamingMode="NEVER" between listener and requestor.
There are a number of cases tested in HttpListenerResponseStreamingTestCase where even when responseStreamingMode="NEVER" chunking is still used. In my mind it should be the "AUTO" mode that decided if it should use chunking based on i) payload type ii) presence of headers. If there is a mode called "NEVER", it should never do chunking otherwise this is confusing/misleading. On the other hand, currently throws an exception in this scenario. Update behaviuor so that in both cases: AUTO: - Chunking if payload is InputStream and no Content-Length header present. - Else delete transfer-encoding header if present and log. ALWAYS: - Delete content-length header and log. NEVER: - Delete transfer-encoding header and log.
Story points: 5