diff options
| author | crobibero <cody@robibe.ro> | 2020-12-10 11:36:58 -0700 |
|---|---|---|
| committer | crobibero <cody@robibe.ro> | 2020-12-10 11:36:58 -0700 |
| commit | 297b7ea6fa81700e3b4cd4d86250495137499878 (patch) | |
| tree | 261f4f3ce7547b3a4f61c2d872ffd3675727a5ab /Jellyfin.Api/Controllers/MediaInfoController.cs | |
| parent | 0d2106a2727f572ef556845d6dd49c224d3d4d96 (diff) | |
Fix empty body for PlaybackInfo
Diffstat (limited to 'Jellyfin.Api/Controllers/MediaInfoController.cs')
| -rw-r--r-- | Jellyfin.Api/Controllers/MediaInfoController.cs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Jellyfin.Api/Controllers/MediaInfoController.cs b/Jellyfin.Api/Controllers/MediaInfoController.cs index a76dc057a..2a1da31c9 100644 --- a/Jellyfin.Api/Controllers/MediaInfoController.cs +++ b/Jellyfin.Api/Controllers/MediaInfoController.cs @@ -17,6 +17,7 @@ using MediaBrowser.Model.MediaInfo; using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Mvc; +using Microsoft.AspNetCore.Mvc.ModelBinding; using Microsoft.Extensions.Logging; namespace Jellyfin.Api.Controllers @@ -119,7 +120,7 @@ namespace Jellyfin.Api.Controllers [FromQuery] bool? enableTranscoding, [FromQuery] bool? allowVideoStreamCopy, [FromQuery] bool? allowAudioStreamCopy, - [FromBody] PlaybackInfoDto? playbackInfoDto) + [FromBody(EmptyBodyBehavior = EmptyBodyBehavior.Allow)] PlaybackInfoDto? playbackInfoDto) { var authInfo = _authContext.GetAuthorizationInfo(Request); |
