Also set content-length so it finishes loading