mirror of
https://github.com/kwsch/PKHeX.git
synced 2026-09-27 23:36:44 -05:00
Undo https switch; the used apis don't use it
They worked just fine previously, just reverting.
This commit is contained in:
@@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user