Fix Typo in NetUtil

This commit is contained in:
Tsunamical 2017-03-23 01:37:59 -04:00
parent d685fb39a9
commit 0f3b316baa

View file

@ -12,8 +12,8 @@ namespace PKHeX.WinForms
try
{
HttpWebRequest httpWebRequest = (HttpWebRequest)WebRequest.Create(webURL);
HttpWebResponse httpWebReponse = (HttpWebResponse)httpWebRequest.GetResponse();
var reader = new StreamReader(httpWebReponse.GetResponseStream());
HttpWebResponse httpWebResponse = (HttpWebResponse)httpWebRequest.GetResponse();
var reader = new StreamReader(httpWebResponse.GetResponseStream());
return reader.ReadToEnd();
}
catch (Exception e)
@ -27,8 +27,8 @@ namespace PKHeX.WinForms
try
{
HttpWebRequest httpWebRequest = (HttpWebRequest)WebRequest.Create(webURL);
HttpWebResponse httpWebReponse = (HttpWebResponse)httpWebRequest.GetResponse();
Stream stream = httpWebReponse.GetResponseStream();
HttpWebResponse httpWebResponse = (HttpWebResponse)httpWebRequest.GetResponse();
Stream stream = httpWebResponse.GetResponseStream();
return stream != null ? Image.FromStream(stream) : null;
}
catch (Exception e)