Corrected handling for client chunked transfer encoding
Fix reorder warnings