Added support for chunked transfer encoding