mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-09-06 11:34:57 +02:00
Merge pull request #2040 from Bond-009/https
Validate https certificates
This commit is contained in:
commit
6889d09cf7
1 changed files with 0 additions and 7 deletions
|
@ -141,13 +141,6 @@ namespace Jellyfin.Server
|
||||||
// http://stackoverflow.com/questions/566437/http-post-returns-the-error-417-expectation-failed-c
|
// http://stackoverflow.com/questions/566437/http-post-returns-the-error-417-expectation-failed-c
|
||||||
ServicePointManager.Expect100Continue = false;
|
ServicePointManager.Expect100Continue = false;
|
||||||
|
|
||||||
// CA5359: Do Not Disable Certificate Validation
|
|
||||||
#pragma warning disable CA5359
|
|
||||||
|
|
||||||
// Allow all https requests
|
|
||||||
ServicePointManager.ServerCertificateValidationCallback = new RemoteCertificateValidationCallback(delegate { return true; });
|
|
||||||
#pragma warning restore CA5359
|
|
||||||
|
|
||||||
Batteries_V2.Init();
|
Batteries_V2.Init();
|
||||||
if (raw.sqlite3_enable_shared_cache(1) != raw.SQLITE_OK)
|
if (raw.sqlite3_enable_shared_cache(1) != raw.SQLITE_OK)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue