mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-05-02 06:46:31 +01:00
Weather updates
This commit is contained in:
parent
b6bc22ae63
commit
3c47375229
@@ -41,6 +41,14 @@ namespace MediaBrowser.Common.Kernel
|
||||
/// </summary>
|
||||
public HttpServer HttpServer { get; private set; }
|
||||
|
||||
protected virtual string HttpServerUrlPrefix
|
||||
{
|
||||
get
|
||||
{
|
||||
return "http://+:" + Configuration.HttpServerPortNumber + "/mediabrowser/";
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the kernel context. The UI kernel will have to override this.
|
||||
/// </summary>
|
||||
@@ -181,7 +189,7 @@ namespace MediaBrowser.Common.Kernel
|
||||
{
|
||||
DisposeHttpServer();
|
||||
|
||||
HttpServer = new HttpServer("http://+:" + Configuration.HttpServerPortNumber + "/mediabrowser/");
|
||||
HttpServer = new HttpServer(HttpServerUrlPrefix);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
@@ -62,7 +62,7 @@ namespace MediaBrowser.Common.Net.Handlers
|
||||
|
||||
protected async override Task WriteResponseToOutputStream(Stream stream)
|
||||
{
|
||||
await EnsureObjectToSerialize();
|
||||
await EnsureObjectToSerialize().ConfigureAwait(false);
|
||||
|
||||
switch (SerializationFormat)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user