aboutsummaryrefslogtreecommitdiff
path: root/Emby.Dlna/Api/DlnaServerService.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Emby.Dlna/Api/DlnaServerService.cs')
-rw-r--r--Emby.Dlna/Api/DlnaServerService.cs3
1 files changed, 1 insertions, 2 deletions
diff --git a/Emby.Dlna/Api/DlnaServerService.cs b/Emby.Dlna/Api/DlnaServerService.cs
index 7e5eb8f90..a61a8d5ab 100644
--- a/Emby.Dlna/Api/DlnaServerService.cs
+++ b/Emby.Dlna/Api/DlnaServerService.cs
@@ -134,8 +134,7 @@ namespace Emby.Dlna.Api
_dlnaManager = dlnaManager;
_resultFactory = httpResultFactory;
_configurationManager = configurationManager;
- object request = httpContextAccessor?.HttpContext.Items["ServiceStackRequest"] ?? throw new ArgumentNullException(nameof(httpContextAccessor));
- Request = (IRequest)request;
+ Request = httpContextAccessor?.HttpContext.GetServiceStack() ?? throw new ArgumentNullException(nameof(httpContextAccessor));
}
private string GetHeader(string name)