]> git.proxmox.com Git - pve-installer.git/commitdiff
auto-installer: fix answer-request charset
authorFabian Grünbichler <f.gruenbichler@proxmox.com>
Fri, 26 Apr 2024 08:12:55 +0000 (10:12 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Fri, 5 Jul 2024 08:18:57 +0000 (10:18 +0200)
'utf-' is a typo, and can trip up some servers that do strict
checking/matching.

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
Reviewed-by: Christoph Heiss <c.heiss@proxmox.com>
proxmox-fetch-answer/src/fetch_plugins/http.rs

index 1c5e9ea850c22a8b1d9b7269f71ff8beb9ac3013..21bc6a2809cfc2fecff0a119621e5e5f13c8a2dd 100644 (file)
@@ -211,7 +211,7 @@ mod http_post {
 
             answer = agent
                 .post(&url)
-                .set("Content-type", "application/json; charset=utf-")
+                .set("Content-type", "application/json; charset=utf-8")
                 .send_string(&payload)?
                 .into_string()?;
         } else {
@@ -231,7 +231,7 @@ mod http_post {
                 .build();
             answer = agent
                 .post(&url)
-                .set("Content-type", "application/json; charset=utf-")
+                .set("Content-type", "application/json; charset=utf-8")
                 .timeout(std::time::Duration::from_secs(60))
                 .send_string(&payload)?
                 .into_string()?;