瀏覽代碼

Update ServiceHandler.cs

BaronGreenback 5 年之前
父節點
當前提交
06beecc4f8
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      Emby.Server.Implementations/Services/ServiceHandler.cs

+ 2 - 1
Emby.Server.Implementations/Services/ServiceHandler.cs

@@ -78,7 +78,8 @@ namespace Emby.Server.Implementations.Services
             var request = await CreateRequest(httpHost, httpReq, _restPath, logger).ConfigureAwait(false);
 
             httpHost.ApplyRequestFilters(httpReq, httpRes, request);
-
+            
+            httpRes.HttpContext.Items["ServiceStackRequest"] = httpReq;
             var response = await httpHost.ServiceController.Execute(httpHost, request, httpReq).ConfigureAwait(false);
 
             // Apply response filters