mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-03-08 19:26:19 +00:00
add more methods to IFileSystem
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user