From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pj1-x1030.google.com (mail-pj1-x1030.google.com [IPv6:2607:f8b0:4864:20::1030]) by sourceware.org (Postfix) with ESMTPS id 2F84A385735E for ; Wed, 29 Mar 2023 15:06:12 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 2F84A385735E Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-pj1-x1030.google.com with SMTP id r7-20020a17090b050700b002404be7920aso14818197pjz.5 for ; Wed, 29 Mar 2023 08:06:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1680102371; h=disposition-notification-to:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date:from:to :cc:subject:date:message-id:reply-to; bh=Y4decqyZCCbZCitSb9vHI66iBGebm3n9sirKd7ZAlPM=; b=YMWB99HrJbJIxyxt6N1dqyqRB7FFpS8dQfVQWfLQvh/RzrjPU4EBiQvUYQ+yjjJzEh ivrqIrbr+O9UFeIM5uLKcJ6vwysiDoMXBOYT80IG2mAOwW0qiM9pHGsUDsNJ4uHYWH29 MsiPrbCypkbvGBzBAo2Ep/IOHhersQ96LOYAyXTv7XQGtH7mpNPFmvgux3MuiTjMcm7K wUxBST/d6trt/syGo2AbaOSixzV/UYPee1tPT2kiRM+rLsoKFXagKwzLR57xe358jrFw k5EkVZFk29/HGiJ6wErxuQkzD8q6jhEZeaCVUelmCVu8QUdE2ZKRhgmMgXRFKUekh2Vs 77Bg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680102371; h=disposition-notification-to:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=Y4decqyZCCbZCitSb9vHI66iBGebm3n9sirKd7ZAlPM=; b=m1n3zrZLgiFZ+/Uqkf3UoMDtuxzT541VKtxzsyt+LR4XKJk6qyUacJF1mnzwyfZ5ss fch3GLEB69Ss9LByKgZEYQQ49AGvM8W6sjRNvEFHg+XdsrO3S4ZfTToMYVuhKep5bJju ihsDkkXrikVGoE46lSM26s8wbbUhTz1uIO57bTQlk37U4rt8RcgTnDbx/IeUr3YxCfqh QNOxOG570FgIByqxuPcd6h/QDeTMBASqp2WSMIRFwPpsxJgrbDNbHbHtwKEoRoxuEIqh Dy2zIh36cCm3i51f8xrU1zJhKdKPU0fsSZsk70NtpeRyqWNf4+Wr40e+cXKfh10B+DFi rV+A== X-Gm-Message-State: AAQBX9d/XuW/jZoiobmV5AKldXe6aQ95ijUc0quBP23CfvfF/+HYHfT5 CZqbXW/L/tnfRLtjPbdMPi4O9DzI96juLlgY/E8= X-Google-Smtp-Source: AKy350bfhBkK+Ki2UlNwCCZZIdH4Q+SJu977HoPlYmrXfbtjmQAXImkmpYoq21a64IGNYEaiHmKuxw== X-Received: by 2002:a17:902:fac7:b0:1a1:ca37:5257 with SMTP id ld7-20020a170902fac700b001a1ca375257mr15790577plb.7.1680102371209; Wed, 29 Mar 2023 08:06:11 -0700 (PDT) Received: from localhost ([2a0c:b641:69c:e9b8:1::1]) by smtp.gmail.com with ESMTPSA id c23-20020a170902849700b001933b4b1a49sm23157760plo.183.2023.03.29.08.06.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 29 Mar 2023 08:06:10 -0700 (PDT) Date: Wed, 29 Mar 2023 23:05:37 +0800 From: lilydjwg To: "Frank Ch. Eigler" Cc: elfutils-devel@sourceware.org Subject: Re: [PATCH] debuginfod-client.c: Fix download size not correctly fallbacks to x-debuginfod-size header Message-ID: References: <20230329045119.763709-1-lilydjwg@gmail.com> <20230329122835.GA30778@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Mailer: Mutt 2.2.10 (2023-03-25) X-Spam-Status: No, score=-4.8 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,GB_FREEMAIL_DISPTO,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: On Wed, Mar 29, 2023 at 10:57:47PM +0800, lilydjwg wrote: > On Wed, Mar 29, 2023 at 08:28:35AM -0400, Frank Ch. Eigler wrote: > > Hi - > > > > > [...] > > > The reason is that when Content-Length is unavailable, cl is set to -1 > > > by curl > > > > Is that behaviour from new versions of curl? > > Yes. curl 8.0.1 to be exact. To be clear, I mean that I'm having the issue when using curl 8.0.1, not the value is set to -1. The latter has been like that even in the "#else" branch which is for older curl. -- Best regards, lilydjwg