Skip to content

Commit

Permalink
Little cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
diamondo25 committed Aug 8, 2015
1 parent dd77361 commit 20e6dbc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions MapleKeys.cs
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,11 @@ public static void Initialize()
{
if (File.Exists("noupdate.txt")) throw new Exception(); // Trigger offline file loading

HttpWebRequest req = WebRequest.Create("http://direct.craftnet.nl/app_updates/get_keys.php?source=SRK&version=4") as HttpWebRequest;
var req = WebRequest.Create("http://direct.craftnet.nl/app_updates/get_keys.php?source=SRK&version=4") as HttpWebRequest;
req.Proxy = null;

using (HttpWebResponse response = req.GetResponse() as HttpWebResponse)
using (StreamReader sr = new StreamReader(response.GetResponseStream()))
using (var response = (HttpWebResponse)req.GetResponse())
using (var sr = new StreamReader(response.GetResponseStream()))
{
string responseText = sr.ReadToEnd();
InitByContents(responseText);
Expand Down

0 comments on commit 20e6dbc

Please sign in to comment.