mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-08 04:07:40 +02:00
Refactoring proxy, part 2
This commit is contained in:
@@ -24,7 +24,7 @@ namespace Wox.Plugin.WebSearch.SuggestionSources
|
||||
try
|
||||
{
|
||||
const string api = "http://suggestion.baidu.com/su?json=1&wd=";
|
||||
result = await Http.Get(api + Uri.EscapeUriString(query), Proxy, "GB2312");
|
||||
result = await Http.Get(api + Uri.EscapeUriString(query), "GB2312");
|
||||
}
|
||||
catch (WebException e)
|
||||
{
|
||||
@@ -61,9 +61,5 @@ namespace Wox.Plugin.WebSearch.SuggestionSources
|
||||
|
||||
return new List<string>();
|
||||
}
|
||||
|
||||
public Baidu(IHttpProxy httpProxy) : base(httpProxy)
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user