'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>
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 {
.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()?;