Message ID | 20211114172733.71602-24-sbabic@denx.de |
---|---|
State | Changes Requested |
Headers | show
Return-Path: <swupdate+bncBCXPLOXJ6IKRBOUOYWGAMGQEE25JJJI@googlegroups.com> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: bilbo.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=googlegroups.com header.i=@googlegroups.com header.a=rsa-sha256 header.s=20210112 header.b=kK16bNgq; dkim-atps=neutral Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=googlegroups.com (client-ip=2a00:1450:4864:20::539; helo=mail-ed1-x539.google.com; envelope-from=swupdate+bncbcxploxj6ikrbouoywgamgqee25jjji@googlegroups.com; receiver=<UNKNOWN>) Received: from mail-ed1-x539.google.com (mail-ed1-x539.google.com [IPv6:2a00:1450:4864:20::539]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by bilbo.ozlabs.org (Postfix) with ESMTPS id 4HsfRy1M7Dz9sWJ for <incoming@patchwork.ozlabs.org>; Mon, 15 Nov 2021 04:28:30 +1100 (AEDT) Received: by mail-ed1-x539.google.com with SMTP id v10-20020aa7d9ca000000b003e7bed57968sf828888eds.23 for <incoming@patchwork.ozlabs.org>; Sun, 14 Nov 2021 09:28:29 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1636910906; cv=pass; d=google.com; s=arc-20160816; b=smIqarhpGBh7drPOZZ8e+iPgzi/dlbNlIP4um+l98t2tHUusVOfLKQOH2utdRMrUa4 qdj2DDege7cn4abqiHvisVzH4FCa6h7LUa2L3dFeFKqH2xYwpp/dqDTOPzV/hRJ3dlVf r1/u1LjpGhA6lCvnk2cmhKHS8j4qUZ/feT61J+2RilVy2KCPWAz8N/K1EOIsdPvRA/Rl hgDhBk/Z+5IoNmx84nFFhldXwhdBqXkd4N1WVAq7TRnIYm6cSJxAJVbjaYaLZW8xtYgA MCgJk/T4PGwLbdltxzZJHcACMVa6AZ9P2ZU+nPpdEZnk65uqViCtmdPk4XkR9nM7neIe BisQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:sender:dkim-signature; bh=F1V2tHYbIrfXQULWCSXJBEnbookFQmxf2kmusYtyo9w=; b=KHEiO36vbn9VhiCcybjYWMyZ3rmGfzdQAoj31zIomyc8mRUB96W5sZGvFIekp7sErr r78IU226cGkfv415mydsQBoXPhPzT2lPLCqw1C9nRhJ8aws7lfXp7l4LRTPFb5StIB8x 3DWn7RSPi22yy3iDLzFYt0ZKKyB5Z/3MTUOqssS2MBBAy9a1Nll9nn4NS2IWEu2auqXk bbqifRci2ZDiDwRsxYqbO6HWu4ICeM8juRRhXfsuuDJrNOV4uR8r6wuQcuZO57gJEamw dexWwAriY86pUDZ5lPf0jhGslg8mxxP0GaHBV5iUQQZBy9pR0nlIDZi0qlhEcEfx64rW FUQg== ARC-Authentication-Results: i=2; gmr-mx.google.com; spf=neutral (google.com: 212.18.0.9 is neither permitted nor denied by domain of sbabic@denx.de) smtp.mailfrom=sbabic@denx.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20210112; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:x-original-sender:x-original-authentication-results :precedence:mailing-list:list-id:list-post:list-help:list-archive :list-subscribe:list-unsubscribe; bh=F1V2tHYbIrfXQULWCSXJBEnbookFQmxf2kmusYtyo9w=; b=kK16bNgqwnhUo3JdMbQfKSFNcyhjIx/bXKv+4k1b/1Wj/KIZayYJc4yfaNJ70ZcDk7 I6SooQCcqQfrBR7kZQTGwgMBVyqJufKpO8ezC+1WXRshBLVG/6CnaMI5yP0UDWs2801C DxIxIOP9RjeYsub4QqCs1Qb3b8AgnwxiRv0qIAGYDlgCRKXVOOu/p0VDSmNio109mJj3 q/Sf9oPxQJXcHA1O7TIzfQEvrMg0TqroD0dTW+CjY8uDn9027C7LWGKVWOM6dahvfWUF 00DGL7XEc4DjyZ+ITW8CLT53u2YC1VdHd9y8jmGvoI5SjQvx6gGYQ9OgJPKhd4aBTcPV aj1g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=sender:x-gm-message-state:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :x-spam-checked-in-group:list-post:list-help:list-archive :list-subscribe:list-unsubscribe; bh=F1V2tHYbIrfXQULWCSXJBEnbookFQmxf2kmusYtyo9w=; b=y0hjTK1g8X+szL67f589/BHVVRssAn2lNrDixuTU8eyoPDeIPyc+y1XNqMPkrVG4CV 7WN3VRQE+tZ2UxhS9IWcbw0UnGTV6bl+KNsZMPEK1ZV4BXjY1vACGV0pH+7FoDAGSSnb EB05RwpDs75fAEy9046Uu0c9sHwjuXF527BoAvZgs74+K5r+ZT2Tz0rZmbRADuY0nTS3 OU1TgA9PcG1EJqz0iGkkIq6j7q3h1bxkcwCwD1kmVCl+h9QCnDpfIZPEHsfuOaJlH1Uc fWDjOzZg3aIsr8q5bIP/v1eReJkotw7Z0/6a5ShHMnCUReKSOmvUprEuR/cKWeLyMb/6 xr+Q== Sender: swupdate@googlegroups.com X-Gm-Message-State: AOAM531WjuuiVpdiF5dvO6Z6Lyj9F7l6dWY+vVGucAYH53VXBhQ7yScE 5vIR0wJ4bdlYUYOkw0ZjSyU= X-Google-Smtp-Source: ABdhPJw9mXRNJVygEYvqF+O0JDPilIpymIIh1rVGocqr5i40Zjqy40fQC4MFBFvIrtCA3+lm319/nw== X-Received: by 2002:a17:906:dc8d:: with SMTP id cs13mr8232795ejc.276.1636910906734; Sun, 14 Nov 2021 09:28:26 -0800 (PST) X-BeenThere: swupdate@googlegroups.com Received: by 2002:a17:907:3e05:: with SMTP id hp5ls4632254ejc.6.gmail; Sun, 14 Nov 2021 09:28:26 -0800 (PST) X-Received: by 2002:a17:907:3daa:: with SMTP id he42mr41689982ejc.160.1636910906012; Sun, 14 Nov 2021 09:28:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1636910906; cv=none; d=google.com; s=arc-20160816; b=0UNiEoOA64sw9ZeQQwVwrKrPp5n0TxexABv+c78dwImoCK2CPD3TruxlXgZBSTp4qw Qyd74jJ3Ez8AsqdzBDdJQ/JnsVB8+9Yiri395DndwNEBOsnMfjyvKi0YhHhcI/bNfAFm Gl4jybl0awXwTFF+9P9YT+NvaLackhpCurJVbe9VyKr714yvdKTcYAuoN3+7I2bLWb11 fqRVRcE1lQUKI74U4cTcUy+T4wjcjHa3t7Cl1DifexOrvx9JMQs3YYx7I2YM+WoQrBW7 zwbdYdCKiqBHpLMGQ5UFAVFARxaByR1BIVNcW7rVCixZpr1jq7NIN0w3w1+oSPPR2H/s ljPw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from; bh=kUBTfDCk6qFycXagoSioS3Y3n+8j3/rx6Cu70D1u91s=; b=0Xz/7Kv577oprtQ51thG44/QLYeC2A22bfOeItq6Dt8cX62Ufzbr91WWGTE39k/itr lNwsoEt3uBfmj88N8mTQYYG523dFEZ8WIAvJF+i7hOxWEK03zUCGfVyeubH+e14Pwysz FrK/kEQnAcNVxsdCj3nWhYpctrHv+H5BncCTVVWzZWGY7AMSuCR56iGm6PWF7eu3G/Kx z0NkQ17y4MI3Kslt2OZHn8+oUYvTPkdLbtjwU3sKeUgLcLRN7t/24ypse1A9nbVZhLfI 11eueW+Ch72T2SN/Myw7CFh2z1UKI3U6PU+iarLGUnEqOfig+d0mJ7932pSp9r6l5ids TNSA== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=neutral (google.com: 212.18.0.9 is neither permitted nor denied by domain of sbabic@denx.de) smtp.mailfrom=sbabic@denx.de Received: from mail-out.m-online.net (mail-out.m-online.net. [212.18.0.9]) by gmr-mx.google.com with ESMTPS id u19si1154303edo.5.2021.11.14.09.28.25 for <swupdate@googlegroups.com> (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sun, 14 Nov 2021 09:28:26 -0800 (PST) Received-SPF: neutral (google.com: 212.18.0.9 is neither permitted nor denied by domain of sbabic@denx.de) client-ip=212.18.0.9; Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 4HsfRs5jJ5z1qwdP; Sun, 14 Nov 2021 18:28:25 +0100 (CET) Received: from localhost (dynscan1.mnet-online.de [192.168.6.70]) by mail.m-online.net (Postfix) with ESMTP id 4HsfRs5bBWz1qqkB; Sun, 14 Nov 2021 18:28:25 +0100 (CET) X-Virus-Scanned: amavisd-new at mnet-online.de Received: from mail.mnet-online.de ([192.168.8.182]) by localhost (dynscan1.mail.m-online.net [192.168.6.70]) (amavisd-new, port 10024) with ESMTP id HJE49B1_QOY7; Sun, 14 Nov 2021 18:28:25 +0100 (CET) Received: from babic.homelinux.org (host-88-217-136-221.customer.m-online.net [88.217.136.221]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.mnet-online.de (Postfix) with ESMTPS; Sun, 14 Nov 2021 18:28:25 +0100 (CET) Received: from localhost (mail.babic.homelinux.org [127.0.0.1]) by babic.homelinux.org (Postfix) with ESMTP id A5DEF45408E4; Sun, 14 Nov 2021 18:28:24 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at babic.homelinux.org Received: from babic.homelinux.org ([127.0.0.1]) by localhost (mail.babic.homelinux.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Rsyjp81T50gc; Sun, 14 Nov 2021 18:28:21 +0100 (CET) Received: from paperino.fritz.box (paperino.fritz.box [192.168.178.48]) by babic.homelinux.org (Postfix) with ESMTP id 82DE945427EA; Sun, 14 Nov 2021 18:27:46 +0100 (CET) From: Stefano Babic <sbabic@denx.de> To: swupdate@googlegroups.com Cc: Stefano Babic <sbabic@denx.de> Subject: [swupdate] [PATCH V2 23/36] channel_curl: store HTTP return code before callbacks Date: Sun, 14 Nov 2021 18:27:20 +0100 Message-Id: <20211114172733.71602-24-sbabic@denx.de> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20211114172733.71602-1-sbabic@denx.de> References: <20211114172733.71602-1-sbabic@denx.de> MIME-Version: 1.0 X-Original-Sender: sbabic@denx.de X-Original-Authentication-Results: gmr-mx.google.com; spf=neutral (google.com: 212.18.0.9 is neither permitted nor denied by domain of sbabic@denx.de) smtp.mailfrom=sbabic@denx.de Content-Type: text/plain; charset="UTF-8" Precedence: list Mailing-list: list swupdate@googlegroups.com; contact swupdate+owners@googlegroups.com List-ID: <swupdate.googlegroups.com> X-Spam-Checked-In-Group: swupdate@googlegroups.com X-Google-Group-Id: 605343134186 List-Post: <https://groups.google.com/group/swupdate/post>, <mailto:swupdate@googlegroups.com> List-Help: <https://groups.google.com/support/>, <mailto:swupdate+help@googlegroups.com> List-Archive: <https://groups.google.com/group/swupdate List-Subscribe: <https://groups.google.com/group/swupdate/subscribe>, <mailto:swupdate+subscribe@googlegroups.com> List-Unsubscribe: <mailto:googlegroups-manage+605343134186+unsubscribe@googlegroups.com>, <https://groups.google.com/group/swupdate/subscribe> |
Series |
DELTA Update
|
expand
|
diff --git a/corelib/channel_curl.c b/corelib/channel_curl.c index 2b9f178..3ee801f 100644 --- a/corelib/channel_curl.c +++ b/corelib/channel_curl.c @@ -185,6 +185,9 @@ size_t channel_callback_ipc(void *streamdata, size_t size, size_t nmemb, } } + if (!data->channel_data->http_response_code) + channel_map_http_code(data->this, &data->channel_data->http_response_code); + if (!data->channel_data->noipc && ipc_send_data(data->output, streamdata, (int)(size * nmemb)) < 0) {
Callbacks need to know the HTTP return code, if any. Signed-off-by: Stefano Babic <sbabic@denx.de> --- corelib/channel_curl.c | 3 +++ 1 file changed, 3 insertions(+)