httpRequest in win launcher uses utility program. Clean up usings and add missing license notices.
This commit is contained in:
committed by
Chris Forbes
parent
de5d9abec3
commit
a4493f48d5
@@ -1,12 +1,19 @@
|
||||
using System;
|
||||
#region Copyright & License Information
|
||||
/*
|
||||
* Copyright 2007-2010 The OpenRA Developers (see AUTHORS)
|
||||
* This file is part of OpenRA, which is free software. It is made
|
||||
* available to you under the terms of the GNU General Public License
|
||||
* as published by the Free Software Foundation. For more information,
|
||||
* see LICENSE.
|
||||
*/
|
||||
#endregion
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.IO;
|
||||
using System.Diagnostics;
|
||||
using System.IO;
|
||||
using System.Text;
|
||||
using System.Text.RegularExpressions;
|
||||
using System.Windows.Forms;
|
||||
using System.Net;
|
||||
|
||||
namespace OpenRA.Launcher
|
||||
{
|
||||
@@ -160,9 +167,7 @@ namespace OpenRA.Launcher
|
||||
|
||||
public string httpRequest(string url)
|
||||
{
|
||||
var wc = new WebClient();
|
||||
var data = wc.DownloadData(new Uri(url));
|
||||
return Encoding.UTF8.GetString(data);
|
||||
return UtilityProgram.CallSimpleResponse("--download-url", url);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user