Merge pull request #487 from tgstation/Cyberboss-patch-1

Fix TLS usage for PR JSON update FUCK
This commit is contained in:
Jordan Brown
2018-02-27 21:06:20 -05:00
committed by GitHub
+2
View File
@@ -1016,6 +1016,8 @@ namespace TGS.Server
prAPI = prAPI.Replace("github.com", "api.github.com/repos");
prAPI += "/pulls/" + PRNumberString + ".json";
string json;
//tls1.2 meme
ServicePointManager.SecurityProtocol |= SecurityProtocolType.Tls12;
using (var wc = new WebClient())
{
wc.Headers.Add("user-agent", "TGS.Server");