From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from firstgate.proxmox.com (firstgate.proxmox.com [IPv6:2a01:7e0:0:424::9]) by lore.proxmox.com (Postfix) with ESMTPS id 50FBB1FF2B0 for ; Fri, 5 Jul 2024 10:02:17 +0200 (CEST) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id B9A623D9B5; Fri, 5 Jul 2024 10:02:34 +0200 (CEST) Date: Fri, 5 Jul 2024 10:02:31 +0200 From: Christoph Heiss To: Fabian =?utf-8?Q?Gr=C3=BCnbichler?= Message-ID: References: <20240426081255.197999-1-f.gruenbichler@proxmox.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20240426081255.197999-1-f.gruenbichler@proxmox.com> X-SPAM-LEVEL: Spam detection results: 0 AWL 0.008 Adjusted score from AWL reputation of From: address BAYES_00 -1.9 Bayes spam probability is 0 to 1% DMARC_MISSING 0.1 Missing DMARC policy KAM_DMARC_STATUS 0.01 Test Rule for DKIM or SPF Failure with Strict Alignment SPF_HELO_NONE 0.001 SPF: HELO does not publish an SPF Record SPF_PASS -0.001 SPF: sender matches SPF record URIBL_BLOCKED 0.001 ADMINISTRATOR NOTICE: The query to URIBL was blocked. See http://wiki.apache.org/spamassassin/DnsBlocklists#dnsbl-block for more information. [proxmox.com, http.rs] Subject: Re: [pve-devel] [PATCH installer] auto-installer: fix answer-request charset X-BeenThere: pve-devel@lists.proxmox.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Proxmox VE development discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Proxmox VE development discussion Cc: Proxmox VE development discussion Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Errors-To: pve-devel-bounces@lists.proxmox.com Sender: "pve-devel" Important fix, apparently slipped through in April. "Re-discovered" it yesterday by coincidence while talking to Aaron. On Fri, Apr 26, 2024 at 10:12:55AM GMT, Fabian Gr=FCnbichler wrote: > 'utf-' is a typo, and can trip up some servers that do strict > checking/matching. > > Signed-off-by: Fabian Gr=FCnbichler Reviewed-by: Christoph Heiss > --- > > Notes: > see https://forum.proxmox.com/threads/invalid-charset-on-automated-in= stall-answer-http-fetch.145856/ > > proxmox-fetch-answer/src/fetch_plugins/http.rs | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/proxmox-fetch-answer/src/fetch_plugins/http.rs b/proxmox-fet= ch-answer/src/fetch_plugins/http.rs > index 1c5e9ea..21bc6a2 100644 > --- a/proxmox-fetch-answer/src/fetch_plugins/http.rs > +++ b/proxmox-fetch-answer/src/fetch_plugins/http.rs > @@ -211,7 +211,7 @@ mod http_post { > > answer =3D agent > .post(&url) > - .set("Content-type", "application/json; charset=3Dutf-") > + .set("Content-type", "application/json; charset=3Dutf-8") > .send_string(&payload)? > .into_string()?; > } else { > @@ -231,7 +231,7 @@ mod http_post { > .build(); > answer =3D agent > .post(&url) > - .set("Content-type", "application/json; charset=3Dutf-") > + .set("Content-type", "application/json; charset=3Dutf-8") > .timeout(std::time::Duration::from_secs(60)) > .send_string(&payload)? > .into_string()?; > -- > 2.39.2 > > > > _______________________________________________ > pve-devel mailing list > pve-devel@lists.proxmox.com > https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel _______________________________________________ pve-devel mailing list pve-devel@lists.proxmox.com https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel