update image encoding
This commit is contained in:
parent
c15afb479b
commit
57741c9cea
|
@ -698,10 +698,21 @@ namespace MediaBrowser.Api.Images
|
|||
|
||||
var userAgent = Request.UserAgent ?? string.Empty;
|
||||
|
||||
if (userAgent.IndexOf("dalvik", StringComparison.OrdinalIgnoreCase) != -1 &&
|
||||
userAgent.IndexOf("android", StringComparison.OrdinalIgnoreCase) != -1)
|
||||
if (!supportsWebP)
|
||||
{
|
||||
supportsWebP = true;
|
||||
if (string.Equals(Request.QueryString["accept"], "webp", StringComparison.OrdinalIgnoreCase))
|
||||
{
|
||||
supportsWebP = true;
|
||||
}
|
||||
}
|
||||
|
||||
if (!supportsWebP)
|
||||
{
|
||||
if (userAgent.IndexOf("crosswalk", StringComparison.OrdinalIgnoreCase) != -1 &&
|
||||
userAgent.IndexOf("android", StringComparison.OrdinalIgnoreCase) != -1)
|
||||
{
|
||||
supportsWebP = true;
|
||||
}
|
||||
}
|
||||
|
||||
if (supportsWebP)
|
||||
|
|
|
@ -77,7 +77,7 @@ namespace MediaBrowser.Server.Mono
|
|||
// Allow all https requests
|
||||
ServicePointManager.ServerCertificateValidationCallback = new RemoteCertificateValidationCallback(delegate { return true; });
|
||||
|
||||
var fileSystem = new ManagedFileSystem(new PatternsLogger(logManager.GetLogger("FileSystem")), false, true);
|
||||
var fileSystem = new ManagedFileSystem(new PatternsLogger(logManager.GetLogger("FileSystem")), false, false);
|
||||
fileSystem.AddShortcutHandler(new MbLinkShortcutHandler(fileSystem));
|
||||
|
||||
var nativeApp = new NativeApp(options);
|
||||
|
|
Loading…
Reference in New Issue
Block a user