From 6e9afc032eefe4b32a79cf8b4f91f21208ec649b Mon Sep 17 00:00:00 2001 From: Kurt Date: Sun, 26 Jul 2015 10:02:30 -0700 Subject: [PATCH] Undo https switch; the used apis don't use it They worked just fine previously, just reverting. --- Misc/Util.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Misc/Util.cs b/Misc/Util.cs index a9dcaa1f2..93e10d05c 100644 --- a/Misc/Util.cs +++ b/Misc/Util.cs @@ -563,7 +563,7 @@ internal static byte[] getQRData() catch { Alert("No text (url) in clipboard."); return null; } try { if (address.Length < 4 || address.Substring(0, 3) != "htt") { Alert("Clipboard text is not a valid URL:", address); return null; } } catch { Alert("Clipboard text is not a valid URL:", address); return null; } - string webURL = "https://api.qrserver.com/v1/read-qr-code/?fileurl=" + System.Web.HttpUtility.UrlEncode(address); + string webURL = "http://api.qrserver.com/v1/read-qr-code/?fileurl=" + System.Web.HttpUtility.UrlEncode(address); try { System.Net.HttpWebRequest httpWebRequest = (System.Net.HttpWebRequest)System.Net.WebRequest.Create(webURL); @@ -587,7 +587,7 @@ internal static Image getQRImage(byte[] data, string server) { string qrdata = Convert.ToBase64String(data); string message = server + qrdata; - string webURL = "https://chart.apis.google.com/chart?chs=365x365&cht=qr&chl=" + System.Web.HttpUtility.UrlEncode(message); + string webURL = "http://chart.apis.google.com/chart?chs=365x365&cht=qr&chl=" + System.Web.HttpUtility.UrlEncode(message); try {