diff options
| author | Luke <luke.pulverenti@gmail.com> | 2016-04-23 01:56:23 -0400 |
|---|---|---|
| committer | Luke <luke.pulverenti@gmail.com> | 2016-04-23 01:56:23 -0400 |
| commit | 02a325f77be4e24f3636c29ef69f437221505b1b (patch) | |
| tree | 2d966fc350676c734f915e6b306bcad1b10379fe /OpenSubtitlesHandler/Utilities.cs | |
| parent | 84546392186d59f0212206ec5204bedc8e54fddc (diff) | |
| parent | 0879089eb50b527a9b1318074476a273d06465e4 (diff) | |
Merge pull request #1678 from nfnty/api
Use HTTPS for API requests
Diffstat (limited to 'OpenSubtitlesHandler/Utilities.cs')
| -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 |
