Allow StaticFileHandler Path to be changed

This commit is contained in:
LukePulverenti Luke Pulverenti luke pulverenti 2012-08-10 23:06:08 -04:00
parent 93a0c30ed1
commit 692d9dc331

View File

@ -10,12 +10,22 @@ namespace MediaBrowser.Common.Net.Handlers
{
public class StaticFileHandler : BaseHandler
{
private string _Path;
public virtual string Path
{
get
{
if (!string.IsNullOrWhiteSpace(_Path))
{
return _Path;
}
return QueryString["path"];
}
set
{
_Path = value;
}
}
private bool FileStreamDiscovered = false;