Properly support Content-Length for XML listing