add Content-Length to response if missing