fix problems with chunked encoding and other transfer encodings
fix problems with chunked encoding and other transfer encodings