Fix when piping a response object