aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Api/Images/ImageService.cs
diff options
context:
space:
mode:
authorLuke Pulverenti <luke.pulverenti@gmail.com>2013-03-23 00:04:36 -0400
committerLuke Pulverenti <luke.pulverenti@gmail.com>2013-03-23 00:04:36 -0400
commitb20151fff373100da7946df93afb7dd4dccea3e4 (patch)
treea16d7085c0eab807c309c94461ed60821029f1ff /MediaBrowser.Api/Images/ImageService.cs
parent4bc27f3a65ddbffcc7b74683df72503f20df275c (diff)
copy dashboard to the output folder and load from the file system, instead of using embedded resources
Diffstat (limited to 'MediaBrowser.Api/Images/ImageService.cs')
-rw-r--r--MediaBrowser.Api/Images/ImageService.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/MediaBrowser.Api/Images/ImageService.cs b/MediaBrowser.Api/Images/ImageService.cs
index 90100dfa7..46c357579 100644
--- a/MediaBrowser.Api/Images/ImageService.cs
+++ b/MediaBrowser.Api/Images/ImageService.cs
@@ -250,14 +250,14 @@ namespace MediaBrowser.Api.Images
/// <param name="request">The request.</param>
public void Post(PostUserImage request)
{
- var pathInfo = PathInfo.Parse(Request.PathInfo);
+ var pathInfo = PathInfo.Parse(RequestContext.PathInfo);
var id = new Guid(pathInfo.GetArgumentValue<string>(1));
request.Type = (ImageType)Enum.Parse(typeof(ImageType), pathInfo.GetArgumentValue<string>(3), true);
var item = _userManager.Users.First(i => i.Id == id);
- var task = PostImage(item, request.RequestStream, request.Type, Request.ContentType);
+ var task = PostImage(item, request.RequestStream, request.Type, RequestContext.ContentType);
Task.WaitAll(task);
}