fixed handling connection-length with transfer-encoding: chunked