Message ID | 20231120155459.45188-12-stefano.babic@swupdate.org |
---|---|
State | Accepted |
Headers | show
Return-Path: <swupdate+bncBAABBWMC52VAMGQEXODZWRQ@googlegroups.com> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=googlegroups.com header.i=@googlegroups.com header.a=rsa-sha256 header.s=20230601 header.b=iitIrhIn; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=googlegroups.com (client-ip=2a00:1450:4864:20::240; helo=mail-lj1-x240.google.com; envelope-from=swupdate+bncbaabbwmc52vamgqexodzwrq@googlegroups.com; receiver=patchwork.ozlabs.org) Received: from mail-lj1-x240.google.com (mail-lj1-x240.google.com [IPv6:2a00:1450:4864:20::240]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4SYsXZ3tC2z1ySc for <incoming@patchwork.ozlabs.org>; Tue, 21 Nov 2023 02:55:10 +1100 (AEDT) Received: by mail-lj1-x240.google.com with SMTP id 38308e7fff4ca-2c871ce22cbsf22333801fa.1 for <incoming@patchwork.ozlabs.org>; Mon, 20 Nov 2023 07:55:09 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1700495706; cv=pass; d=google.com; s=arc-20160816; b=hYQp0E4mvV//pR3Z46V8Ua88YXkN+Gb4PrHmHvfuEUtkmYQHlXLBM5PPvVYSrVIE/e N1xSt27mVkq2BaX84knSJgj4Jqqm4LUZ53rh5piRNE9KqyBeSM1nrcpZjPq6LX5hyrY0 4Ijz4iH7HVUbpB3dwQRv9si36ChjMrqkLzTD4FK54y3JsUC1tjJLkASt63SFFndah2h9 ef7QZOn53gssEZbqVAIsYEN5l2DkoVj0g8IfqM/4odSKL9z9V5nIkGE+VkT+oBIFwdag ijwEd68bbsRMOQy4AZ5vJxfkmianJVhvMOHZ8BT14WuzJluB7+4A3QM8Fyu4Y/kfVs3X 7icw== 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:ui-outboundreport:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from:sender :dkim-signature; bh=4vb+8XWjzGBCCabNpdOhy8kWpJTVyBjLHOpAdvf04hQ=; fh=TiEWcqMcKpHk5s7uErzpntoONrNfOXwKpI5P8bIlggk=; b=JOlarRj6+c5pcqQTu0MilH0pmrHtIo6j0IMt9H1mHZUFMGU9TicnMG4h3illZac87h yvIq1YYhKwRm9tVtpWkdBUfrOSOw/jLBWyLC4UHRp/5gdu8iUKbq8+L3JHhSTIQkqPKf 6IhXKju07AFr3JSGCcuj19+JaRjnfq0W5J51+fWLrmKaZcclQPG43VX49wGl1hiYl99V 5IbiwH+HwKkAcmTo0o/m4BfnBdWsD9gdEgSvaI2dkR8USuiJ3hZzHh+VuAYbeASYT4CB iit01+XHZeHcW9SnTTQz23Lx+icCHwPOhAIHqp4TejUChuIlC5Km70Me5D8IloNWBHpJ Vi8A== ARC-Authentication-Results: i=2; gmr-mx.google.com; spf=pass (google.com: domain of stefano.babic@swupdate.org designates 217.72.192.75 as permitted sender) smtp.mailfrom=stefano.babic@swupdate.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20230601; t=1700495706; x=1701100506; darn=patchwork.ozlabs.org; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:x-original-authentication-results :x-original-sender:ui-outboundreport:mime-version:references :in-reply-to:message-id:date:subject:cc:to:from:sender:from:to:cc :subject:date:message-id:reply-to; bh=4vb+8XWjzGBCCabNpdOhy8kWpJTVyBjLHOpAdvf04hQ=; b=iitIrhInmsTwT8eBBki7Jz/nyMkEkEF5KTFwq2cz9ko/OiJvz0JWNExXN6KkI/Fcb3 kFhLmAFGbBWl/WHVI9+TM+KL9aS/5WD6WV8opCh/4Y/zUBLb5NBdNSAN6jYsnJrccODN x8TGkXdR68bzSpsKEviDT6OY0utCEhwfjhkFMSLGovMwMFbUa4bZaj+d82f3vBoDZ7Mi 8KX/B3PLYMJK1VD3pwOSwHjDpmZb6EvgvCtlotUijgRs9QeF5FulC7gTqLd2nTlpNS3W hkaB4ZIs7133pAjcOY6mJNBwuxWnUsLomc21BybHtObwhXeNM3A5biCl+kG2cO7ONWXb qPKA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700495706; x=1701100506; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :x-spam-checked-in-group:list-id:mailing-list:precedence :x-original-authentication-results:x-original-sender :ui-outboundreport:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:x-beenthere:x-gm-message-state:sender:from :to:cc:subject:date:message-id:reply-to; bh=4vb+8XWjzGBCCabNpdOhy8kWpJTVyBjLHOpAdvf04hQ=; b=FihUk1r6FILEQ+gEatpR6yhTPRNJCo4lHfbHbQVO5C3dD/S6eILJ8opKcwTtf25kko 535sqCQjFxu3jQ9JhVBT1kU1IT/iHKzfjVVEvlE8Hmx4Y6hfMZWz3BeSCvnV80uBreKi 8u4A4CdgbEWBuTHIaaMdXJFPkFPrhLuKurTBn2X8w/rsmJd/zMOIyTRuPC3nxMEMTeOX dcuQuOxEPdzOZvyMnnCU78/7jEMFL3pVV4U4DF4kCWcChus48/k4Qx2ir9CNzTzNiwMV d1218trLFDVIIHeUxYyTFpV4yW7UrKPt6jd7E4CUeA+viY/1ddvx1rEcGIXzjGMKF1x9 5RmQ== Sender: swupdate@googlegroups.com X-Gm-Message-State: AOJu0YwVVOXklpD3dPJVRmqJEIvtLYsnWk82u44/vR5Oann2jAUoZ6eJ 7hWegMC7zmGK51b8UpqFNR8= X-Google-Smtp-Source: AGHT+IHgcUc8cddOLqcNg9iJqnuEM4oW3N5dAgIOuBGC0nLx8jXufCGJ06xpIvjvV9zS7YcyDMJHHA== X-Received: by 2002:a2e:5314:0:b0:2c5:106f:5416 with SMTP id h20-20020a2e5314000000b002c5106f5416mr4427909ljb.53.1700495706314; Mon, 20 Nov 2023 07:55:06 -0800 (PST) X-BeenThere: swupdate@googlegroups.com Received: by 2002:a2e:b554:0:b0:2c8:7654:1e42 with SMTP id a20-20020a2eb554000000b002c876541e42ls32243ljn.1.-pod-prod-05-eu; Mon, 20 Nov 2023 07:55:04 -0800 (PST) X-Received: by 2002:a05:651c:311:b0:2c5:5926:de4c with SMTP id a17-20020a05651c031100b002c55926de4cmr4800275ljp.32.1700495704231; Mon, 20 Nov 2023 07:55:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700495704; cv=none; d=google.com; s=arc-20160816; b=nKQ+j5/Pl7yYW/Igyh3LQNimpv/lVAlFJVpMiA95m9+BE/rnim6fNOwXILPGvU+JCJ 0dsl7qDNeQMxcQ+F7cdQMebIhVq5FG5T4qwzc+pOqD4dv/Bo3uhQhuLRMZfmWCKEr6q9 /Vznxiu2bpxGT9iTK1sKch1kzezwoRy8DEqokYG8PlfXWf1XmnZap8FIn9xWEukEOHiB jpkVpN2JF/XrRVDO1n++hYd503AgjDgN+4wVlorl3UxSTZLI8InVrfAMoRkN8AI5DdwR 8peHpXejwMxHywDqT+1nnGyWyQmfuwVdGmpYT/3WWG18fsBql54r92zGZCmTwUwpLz96 lOKQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=ui-outboundreport:content-transfer-encoding:mime-version:references :in-reply-to:message-id:date:subject:cc:to:from; bh=WauT0gt4QCYJYbLao+0kT14oOoodRjvqFgFmJNKJCEc=; fh=TiEWcqMcKpHk5s7uErzpntoONrNfOXwKpI5P8bIlggk=; b=B9l3AcX+0kkxnefOgGcNjoMNaR37raHoDpMsGuPi490HlhMb+OTKWw4hBDmgTn0xsr iHNlfUBAxYyYinFD0XU3t3FC0auA7xRphpzb4SoqUXcn62El8WWVU4g9FaVXp0D+PyPb NxnDVrbHmAe1hlWhWdzBP3lfE84X5LYUN0G6DMZXDHRAMLSeoqVS720zS0HwPB8AztpF nk0M40R+9WEGUcMbwbZb9PvPi3JF7xMMeiREMZF1KlWOgoxbysUYAFBIAFxQ5s/Zx16A PtuOgCadaXrXSp/dgPmkwDzWQNdzTAPXZSJJPpaFLKWt5PfUb5E9Z185cTLKeF6LnZ18 jEfw== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of stefano.babic@swupdate.org designates 217.72.192.75 as permitted sender) smtp.mailfrom=stefano.babic@swupdate.org Received: from mout.kundenserver.de (mout.kundenserver.de. [217.72.192.75]) by gmr-mx.google.com with ESMTPS id e16-20020a05651c151000b002c820f71e0bsi56775ljf.5.2023.11.20.07.55.04 for <swupdate@googlegroups.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 Nov 2023 07:55:04 -0800 (PST) Received-SPF: pass (google.com: domain of stefano.babic@swupdate.org designates 217.72.192.75 as permitted sender) client-ip=217.72.192.75; Received: from paperino.fritz.box ([88.217.136.221]) by mrelayeu.kundenserver.de (mreue109 [213.165.67.113]) with ESMTPSA (Nemesis) id 1N7iKq-1rQXW12Dic-014mSo; Mon, 20 Nov 2023 16:55:03 +0100 From: Stefano Babic <stefano.babic@swupdate.org> To: swupdate@googlegroups.com Cc: Stefano Babic <stefano.babic@swupdate.org> Subject: [swupdate] [PATCH 11/13] channel_curl: implement DELETE as part of put Date: Mon, 20 Nov 2023 16:54:57 +0100 Message-Id: <20231120155459.45188-12-stefano.babic@swupdate.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20231120155459.45188-1-stefano.babic@swupdate.org> References: <20231120155459.45188-1-stefano.babic@swupdate.org> MIME-Version: 1.0 X-Provags-ID: V03:K1:nsfH7DitYSBmRaqo2evOIuLglgCiA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Mc7FXIp3VmXJgG62P56ioBndgKeICam1LOIZ8/uA7v3DZAkkrgtsvAKerIrhL6k8/ +iGbfmGDAxiXN9g== X-Original-Sender: stefano.babic@swupdate.org X-Original-Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of stefano.babic@swupdate.org designates 217.72.192.75 as permitted sender) smtp.mailfrom=stefano.babic@swupdate.org 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 |
Native Docker Support
|
expand
|
diff --git a/corelib/channel_curl.c b/corelib/channel_curl.c index 4ac089b8..c498c666 100644 --- a/corelib/channel_curl.c +++ b/corelib/channel_curl.c @@ -1073,6 +1073,10 @@ static channel_op_res_t channel_post_method(channel_t *this, void *data, int met curl_result |= channel_set_read_callback(channel_curl->handle, channel_data); break; + case CHANNEL_DELETE: + curl_result = curl_easy_setopt(channel_curl->handle, CURLOPT_CUSTOMREQUEST, "DELETE"); + break; + case CHANNEL_PUT: curl_result = curl_easy_setopt(channel_curl->handle, #if LIBCURL_VERSION_NUM >= 0x70C01 @@ -1135,6 +1139,7 @@ channel_op_res_t channel_put(channel_t *this, void *data) case CHANNEL_PUT: case CHANNEL_POST: case CHANNEL_PATCH: + case CHANNEL_DELETE: return channel_post_method(this, data, channel_data->method); default: TRACE("Channel method (POST, PUT, PATCH) is not set !");
Implement the DELETE API and reuse the put entry point by changing the HTTP request. Signed-off-by: Stefano Babic <stefano.babic@swupdate.org> --- corelib/channel_curl.c | 5 +++++ 1 file changed, 5 insertions(+)