UserAgent change.
This commit is contained in:
parent
93380b7a19
commit
47167f2be5
|
|
@ -109,7 +109,9 @@ class Downloader
|
||||||
| SecurityProtocolType.Ssl3;
|
| SecurityProtocolType.Ssl3;
|
||||||
// Create a request for the specified remote file name
|
// Create a request for the specified remote file name
|
||||||
HttpWebRequest request = (HttpWebRequest)WebRequest.Create(remoteFilename);
|
HttpWebRequest request = (HttpWebRequest)WebRequest.Create(remoteFilename);
|
||||||
request.UserAgent = "Roblox/WinINet";
|
//changing it to just "roblox" since roblox is breaking everything.
|
||||||
|
//request.UserAgent = "Roblox/WinINet";
|
||||||
|
request.UserAgent = "Roblox";
|
||||||
request.Headers.Add(HttpRequestHeader.AcceptEncoding, "gzip,deflate");
|
request.Headers.Add(HttpRequestHeader.AcceptEncoding, "gzip,deflate");
|
||||||
request.AutomaticDecompression = DecompressionMethods.GZip | DecompressionMethods.Deflate;
|
request.AutomaticDecompression = DecompressionMethods.GZip | DecompressionMethods.Deflate;
|
||||||
if (request != null)
|
if (request != null)
|
||||||
|
|
|
||||||
|
|
@ -1229,11 +1229,14 @@ namespace NovetusLauncher
|
||||||
private void SearchButton_Click(object sender, EventArgs e)
|
private void SearchButton_Click(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
string searchText = SearchBar.Text;
|
string searchText = SearchBar.Text;
|
||||||
|
|
||||||
if (string.IsNullOrWhiteSpace(searchText))
|
if (string.IsNullOrWhiteSpace(searchText))
|
||||||
{
|
{
|
||||||
return;
|
return;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
try
|
||||||
|
{
|
||||||
if (LastSearchText != searchText)
|
if (LastSearchText != searchText)
|
||||||
{
|
{
|
||||||
//It's a new Search
|
//It's a new Search
|
||||||
|
|
@ -1265,6 +1268,11 @@ namespace NovetusLauncher
|
||||||
treeView1.Select();
|
treeView1.Select();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
catch (Exception)
|
||||||
|
{
|
||||||
|
MessageBox.Show("The map '" + searchText + "' cannot be found. Please try another term.");
|
||||||
|
}
|
||||||
|
}
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
#region Functions
|
#region Functions
|
||||||
|
|
|
||||||
|
|
@ -1386,11 +1386,14 @@ namespace NovetusLauncher
|
||||||
private void SearchButton_Click(object sender, EventArgs e)
|
private void SearchButton_Click(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
string searchText = SearchBar.Text;
|
string searchText = SearchBar.Text;
|
||||||
|
|
||||||
if (string.IsNullOrWhiteSpace(searchText))
|
if (string.IsNullOrWhiteSpace(searchText))
|
||||||
{
|
{
|
||||||
return;
|
return;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
try
|
||||||
|
{
|
||||||
if (LastSearchText != searchText)
|
if (LastSearchText != searchText)
|
||||||
{
|
{
|
||||||
//It's a new Search
|
//It's a new Search
|
||||||
|
|
@ -1422,6 +1425,11 @@ namespace NovetusLauncher
|
||||||
treeView1.Select();
|
treeView1.Select();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
catch (Exception)
|
||||||
|
{
|
||||||
|
MessageBox.Show("The map '" + searchText + "' cannot be found. Please try another term.");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
private void button36_Click(object sender, EventArgs e)
|
private void button36_Click(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue