Proper handling of chunked responses