Merge pull request #1317 from mulesoft/MULE-8142

MULE-8142 - Adding logic to consume the complete input when tranfer-enco...
(cherry picked from commit 624b96173748afa8f15a66a2e7b56870568f9963)