mirror of
https://github.com/kwsch/PKHeX
synced 2024-11-26 22:10:21 +00:00
Fix Typo in NetUtil
This commit is contained in:
parent
d685fb39a9
commit
0f3b316baa
1 changed files with 4 additions and 4 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue