aboutsummaryrefslogtreecommitdiff
path: root/Jellyfin.Api/Controllers/ConfigurationController.cs
diff options
context:
space:
mode:
authorBond-009 <bond.009@outlook.com>2020-08-22 13:06:12 +0200
committerGitHub <noreply@github.com>2020-08-22 13:06:12 +0200
commit92c491397eb81ed0d9349f11036c9f3a1e2be2e4 (patch)
treec949858416fc162ff5ebced8045ee57e7646466b /Jellyfin.Api/Controllers/ConfigurationController.cs
parent3e65cae70e9df4d26b887689669666d46c1216f2 (diff)
parentd63f4bce5d380afc4cf8c97285d0ac86989554d5 (diff)
Merge pull request #3941 from crobibero/no-more-form
Conver all remaining form request to body
Diffstat (limited to 'Jellyfin.Api/Controllers/ConfigurationController.cs')
-rw-r--r--Jellyfin.Api/Controllers/ConfigurationController.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/Jellyfin.Api/Controllers/ConfigurationController.cs b/Jellyfin.Api/Controllers/ConfigurationController.cs
index 019703dae..20fb0ec87 100644
--- a/Jellyfin.Api/Controllers/ConfigurationController.cs
+++ b/Jellyfin.Api/Controllers/ConfigurationController.cs
@@ -117,7 +117,7 @@ namespace Jellyfin.Api.Controllers
[HttpPost("MediaEncoder/Path")]
[Authorize(Policy = Policies.FirstTimeSetupOrElevated)]
[ProducesResponseType(StatusCodes.Status204NoContent)]
- public ActionResult UpdateMediaEncoderPath([FromForm, Required] MediaEncoderPathDto mediaEncoderPath)
+ public ActionResult UpdateMediaEncoderPath([FromBody, Required] MediaEncoderPathDto mediaEncoderPath)
{
_mediaEncoder.UpdateEncoderPath(mediaEncoderPath.Path, mediaEncoderPath.PathType);
return NoContent();