Your ROOT_URL in app.ini is https://git.cloudchain.link/ but you are visiting https://dash.bss.nz/open-source-mirrors/jellyfin/commit/c85cb85eeaff168d547ada0f4e066e0591c9a562
You should set ROOT_URL correctly, otherwise the web may not work correctly.
9 changed files with
16 additions and
23 deletions
@ -96,13 +96,13 @@ namespace Emby.Server.Implementations.HttpClientManager
switch ( options . DecompressionMethod )
{
case CompressionMethod . Deflate | CompressionMethod . Gzip :
case CompressionMethod s . Deflate | CompressionMethod s . Gzip :
request . Headers . Add ( HeaderNames . AcceptEncoding , new [ ] { "gzip" , "deflate" } ) ;
break ;
case CompressionMethod . Deflate :
case CompressionMethod s . Deflate :
request . Headers . Add ( HeaderNames . AcceptEncoding , "deflate" ) ;
break ;
case CompressionMethod . Gzip :
case CompressionMethod s . Gzip :
request . Headers . Add ( HeaderNames . AcceptEncoding , "gzip" ) ;
break ;
default :
@ -239,15 +239,10 @@ namespace Emby.Server.Implementations.HttpClientManager
var httpWebRequest = GetRequestMessage ( options , httpMethod ) ;
if ( options . RequestContentBytes ! = null
| | ! string . IsNullOrEmpty ( options . RequestContent )
if ( ! string . IsNullOrEmpty ( options . RequestContent )
| | httpMethod = = HttpMethod . Post )
{
if ( options . RequestContentBytes ! = null )
{
httpWebRequest . Content = new ByteArrayContent ( options . RequestContentBytes ) ;
}
else if ( options . RequestContent ! = null )
if ( options . RequestContent ! = null )
{
httpWebRequest . Content = new StringContent (
options . RequestContent ,
@ -72,7 +72,7 @@ namespace Emby.Server.Implementations.LiveTv.EmbyTV
UserAgent = "Emby/3.0" ,
// Shouldn't matter but may cause issues
DecompressionMethod = CompressionMethod . None
DecompressionMethod = CompressionMethod s . None
} ;
using ( var response = await _httpClient . SendAsync ( httpRequestOptions , HttpMethod . Get ) . ConfigureAwait ( false ) )
@ -635,7 +635,7 @@ namespace Emby.Server.Implementations.LiveTv.Listings
ListingsProviderInfo providerInfo )
{
// Schedules direct requires that the client support compression and will return a 400 response without it
options . DecompressionMethod = CompressionMethod . Deflate ;
options . DecompressionMethod = CompressionMethod s . Deflate ;
try
{
@ -665,7 +665,7 @@ namespace Emby.Server.Implementations.LiveTv.Listings
ListingsProviderInfo providerInfo )
{
// Schedules direct requires that the client support compression and will return a 400 response without it
options . DecompressionMethod = CompressionMethod . Deflate ;
options . DecompressionMethod = CompressionMethod s . Deflate ;
try
{
@ -83,7 +83,7 @@ namespace Emby.Server.Implementations.LiveTv.Listings
{
CancellationToken = cancellationToken ,
Url = path ,
DecompressionMethod = CompressionMethod . Gzip ,
DecompressionMethod = CompressionMethod s . Gzip ,
} ,
HttpMethod . Get ) . ConfigureAwait ( false ) )
using ( var stream = res . Content )
@ -59,7 +59,7 @@ namespace Emby.Server.Implementations.LiveTv.TunerHosts
Url = url ,
CancellationToken = CancellationToken . None ,
BufferContent = false ,
DecompressionMethod = CompressionMethod . None
DecompressionMethod = CompressionMethod s . None
} ;
foreach ( var header in mediaSource . RequiredHttpHeaders )
@ -9,7 +9,7 @@ namespace MediaBrowser.Common.Cryptography
/// <summary>
/// Class containing extension methods for working with Jellyfin cryptography objects.
/// </summary>
public static class Extensions
public static class Crypto Extensions
{
/// <summary>
/// Creates a new <see cref="PasswordHash" /> instance.
@ -30,7 +30,7 @@
<!-- Code analyzers -->
<ItemGroup Condition= " '$(Configuration)' == 'Debug' " >
<!-- <PackageReference Include="Microsoft.CodeAnalysis.FxCopAnalyzers" Version="2.9.8" PrivateAssets="All" /> -- >
<PackageReference Include= "Microsoft.CodeAnalysis.FxCopAnalyzers" Version= "2.9.8" PrivateAssets= "All" / >
<PackageReference Include= "SerilogAnalyzer" Version= "0.15.0" PrivateAssets= "All" />
<!-- <PackageReference Include="StyleCop.Analyzers" Version="1.1.118" PrivateAssets="All" /> -->
<PackageReference Include= "SmartAnalyzers.MultithreadingAnalyzer" Version= "1.1.31" PrivateAssets= "All" />
@ -20,7 +20,7 @@ namespace MediaBrowser.Common.Net
RequestHeaders = new Dictionary < string , string > ( StringComparer . OrdinalIgnoreCase ) ;
CacheMode = CacheMode . None ;
DecompressionMethod = CompressionMethod . Deflate ;
DecompressionMethod = CompressionMethod s . Deflate ;
}
/// <summary>
@ -29,7 +29,7 @@ namespace MediaBrowser.Common.Net
/// <value>The URL.</value>
public string Url { get ; set ; }
public CompressionMethod DecompressionMethod { get ; set ; }
public CompressionMethod s DecompressionMethod { get ; set ; }
/// <summary>
/// Gets or sets the accept header.
@ -83,8 +83,6 @@ namespace MediaBrowser.Common.Net
public string RequestContent { get ; set ; }
public byte [ ] RequestContentBytes { get ; set ; }
public bool BufferContent { get ; set ; }
public bool LogErrorResponseBody { get ; set ; }
@ -112,7 +110,7 @@ namespace MediaBrowser.Common.Net
}
[Flags]
public enum CompressionMethod
public enum CompressionMethod s
{
None = 0 b00000001 ,
Deflate = 0 b00000010 ,
@ -8,7 +8,7 @@ namespace MediaBrowser.Common.Net
/// <summary>
/// Class HttpResponseInfo.
/// </summary>
public class HttpResponseInfo : IDisposable
public sealed class HttpResponseInfo : IDisposable
{
#pragma warning disable CS1591
public HttpResponseInfo ( )