diff options
| author | nfnty <git@nfnty.se> | 2016-04-21 07:13:33 +0200 |
|---|---|---|
| committer | nfnty <git@nfnty.se> | 2016-04-23 06:47:15 +0200 |
| commit | 0879089eb50b527a9b1318074476a273d06465e4 (patch) | |
| tree | 64450e596a05fc98f64655ec55e6d3d46daaf9cf /OpenSubtitlesHandler | |
| parent | c59b4329f4e152be0d186f4db720333fb7b2c4b7 (diff) | |
Use HTTPS for API requests
Diffstat (limited to 'OpenSubtitlesHandler')
| -rw-r--r-- | OpenSubtitlesHandler/Utilities.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/OpenSubtitlesHandler/Utilities.cs b/OpenSubtitlesHandler/Utilities.cs index 2ae116521..d26c76b7c 100644 --- a/OpenSubtitlesHandler/Utilities.cs +++ b/OpenSubtitlesHandler/Utilities.cs @@ -32,7 +32,7 @@ namespace OpenSubtitlesHandler /// </summary> public sealed class Utilities { - private const string XML_RPC_SERVER = "http://api.opensubtitles.org/xml-rpc"; + private const string XML_RPC_SERVER = "https://api.opensubtitles.org/xml-rpc"; /// <summary> /// Compute movie hash @@ -195,7 +195,7 @@ namespace OpenSubtitlesHandler RequestContentBytes = request, RequestContentType = "text/xml", UserAgent = userAgent, - Host = "api.opensubtitles.org:80", + Host = "api.opensubtitles.org:443", Url = XML_RPC_SERVER, // Response parsing will fail with this enabled |
