mirror of
https://github.com/tgstation/tgstation-server.git
synced 2026-08-26 14:37:44 +01:00
Merge pull request #487 from tgstation/Cyberboss-patch-1
Fix TLS usage for PR JSON update FUCK
This commit is contained in:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user