mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-08-27 04:16:47 +00:00
add more methods to IFileSystem
This commit is contained in:
parent
6cb184fcf8
commit
8cf45a3e4a
64 changed files with 296 additions and 149 deletions
|
|
@ -79,6 +79,8 @@ namespace MediaBrowser.Server.Implementations.HttpServer
|
|||
_containerAdapter = new ContainerAdapter(applicationHost);
|
||||
}
|
||||
|
||||
public string GlobalResponse { get; set; }
|
||||
|
||||
public override void Configure(Container container)
|
||||
{
|
||||
HostConfig.Instance.DefaultRedirectPath = DefaultRedirectPath;
|
||||
|
|
@ -336,6 +338,13 @@ namespace MediaBrowser.Server.Implementations.HttpServer
|
|||
return Task.FromResult(true);
|
||||
}
|
||||
|
||||
if (!string.IsNullOrWhiteSpace(GlobalResponse))
|
||||
{
|
||||
httpRes.Write(GlobalResponse);
|
||||
httpRes.ContentType = "text/plain";
|
||||
return Task.FromResult(true);
|
||||
}
|
||||
|
||||
var handler = HttpHandlerFactory.GetHandler(httpReq);
|
||||
|
||||
var remoteIp = httpReq.RemoteIp;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue