Fix UTF double encoding in file editor (#2199)

This commit is contained in:
Lance Pioch
2026-02-14 10:33:35 -05:00
committed by GitHub
parent cf2a26bbf0
commit 44f6cf8928
3 changed files with 7 additions and 3 deletions

View File

@@ -53,7 +53,7 @@ class DaemonFileRepository extends DaemonRepository
{
$response = $this->getHttpClient()
->withQueryParameters(['file' => $path])
->withBody($content)
->withBody($content, 'text/plain')
->post("/api/servers/{$this->server->uuid}/files/write");
if ($response->status() === 400) {