mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-12-22 00:35:26 +03:00
One async call leads to another, and another, all the way up the call stack...
This commit is contained in:
parent
64887fa743
commit
937d27ae9d
@@ -14,9 +14,9 @@ namespace MediaBrowser.Common.Net.Handlers
|
||||
|
||||
protected string ResourcePath { get; set; }
|
||||
|
||||
public override string ContentType
|
||||
public override Task<string> GetContentType()
|
||||
{
|
||||
get
|
||||
return Task.Run(() =>
|
||||
{
|
||||
string extension = Path.GetExtension(ResourcePath);
|
||||
|
||||
@@ -46,7 +46,7 @@ namespace MediaBrowser.Common.Net.Handlers
|
||||
}
|
||||
|
||||
return "text/plain; charset=utf-8";
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
protected override Task WriteResponseToOutputStream(Stream stream)
|
||||
|
||||
Reference in New Issue
Block a user