We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8df09d1 commit 3cd6d70Copy full SHA for 3cd6d70
fCraft/Player/Chat.cs
@@ -103,7 +103,9 @@ public static void getUrls(string rawMessage) {
103
MatchCollection urlMatches = RegexURLMatcher.Matches(rawMessage);
104
foreach (Match match in urlMatches) {
105
if (fullUrls.Count() < 5) {
106
- var request = (HttpWebRequest)WebRequest.Create("http://123dmwm.tk/unshorten.php?url=" + match.ToString());
+ Uri uri = new Uri("https://123dmwm.tk/unshorten.php?url=" + match.ToString());
107
+ HttpWebRequest request = HttpUtil.CreateRequest(uri, TimeSpan.FromSeconds(10));
108
+
109
string fullUrl = null;
110
using (var response = (HttpWebResponse)request.GetResponse()) {
111
var encoding = Encoding.GetEncoding(response.CharacterSet);
0 commit comments